Java
Which of t ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Which of the following variable declarations are allowed in Java?
int if;
int goto;
int then;
int else;
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.
keywords
reserved words
goto
1
(1)
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
What will be the result of the following program execution? ...
Given the class: public class Clazz { public static ...
How should the line 6 of the following code be modified so that the compilation ...
Is it possible to use abstract and final modifiers during a class declaration at...
What will happen as the result of the following code compilation? ...
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment