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.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes