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.

Follow CodeGalaxy

Mobile Beta

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