Which of the following variable declarations are allowed in Java?
Explanation
if and else are keywords in java and cannot be variable names. goto is a reserved word and also cannot be a variable name. then is a correct variable name.
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback