Select the correct answerWhich of these can not be used for a variable name in Java?Optionskeywordidentifieridentifier & keywordnone of the mentioned
Question
Select the correct answerWhich of these can not be used for a variable name in Java?Optionskeywordidentifieridentifier & keywordnone of the mentioned
Solution
The correct answer is "keyword". In Java, you cannot use a keyword as a variable name. Keywords are reserved words that have a specific meaning to the compiler and cannot be used for any other purpose.
Similar Questions
nswerWhich of these can not be used for a variable name in Java?Optionsidentifieridentifier & keywordkeywordnone of the mentioned
Select the correct answerA variable in Java that's declared within the body of a method. and can used only within that method is called Optionsstatic variablelocal variableinstance variableNone of the mentioned
Select the correct answerLiterals in java must be appended by which of these?OptionsILDL and I
Select the correct answerWhich of these is supported by method overriding in Java?OptionsPolymorphismEncapsulationAbstractionNone of the mentioned
Select the correct answerWhich of these keywords is not a part of exception handling?Optionstrythrowncatchfinally
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.