Java Programming - Language Fundamentals - Discussion
Discussion Forum : Language Fundamentals - General Questions (Q.No. 2)
2.
Which one of these lists contains only Java programming language keywords?
Answer: Option
Explanation:
All the words in option B are among the 49 Java keywords. Although goto reserved as a keyword in Java, goto is not used and has no function.
Option A is wrong because the keyword for the primitive int starts with a lowercase i.
Option C is wrong because "virtual" is a keyword in C++, but not Java.
Option D is wrong because "constant" is not a keyword. Constants in Java are marked static and final.
Option E is wrong because "include" is a keyword in C, but not in Java.
Discussion:
62 comments Page 7 of 7.
Saurabh said:
4 years ago
Though goto is not a frequently used keyword, still a keyword,
And here, the question is which has only one keyword (whether used or not used is not mentioned).
And here, the question is which has only one keyword (whether used or not used is not mentioned).
(2)
Jeevanantham said:
10 months ago
Goto keyword is used in C language also, then how do say that it is only in Java language?
Anyone please explain to me.
Anyone please explain to me.
(2)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers