Given the class:
public class Clazz {
    public static void main(String[] args) {
        // input here
    }
}
which of the following definitions can be added to it so that it successfully compiles?
Explanation
Java language keywords such as names of primitive types like byte and char cannot be used as variable names.
Default library class names such as String, Byte, and Char are not considered to be keywords and may be used as variable names.
The string identifier is not a Java keyword and can also be used as a variable name.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по Java
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты