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:
63 comments Page 5 of 7.
Kirankumar said:
1 decade ago
Sir goto is a keyword of C not keyword of Java right (or) wrong?
Deep Vakharia said:
10 years ago
Goto is not used in java and as an alternative java has provided us inner and out loop function we can break the loop that we want to. So there's no use of goto in Java.
Premchand said:
10 years ago
Java has goto keyword but not in use.
Deepak kumar J said:
10 years ago
When goto keyword used in Java.
Suman said:
10 years ago
Why goto keyword is not used?
Krishna patel said:
9 years ago
The, What about volatile?
Sudeshna Sarkar said:
9 years ago
Is it necessary to know all the names of the 49 java keywords?
Prashant said:
9 years ago
But goto is also used in C. So this is the wrong option.
Vishnu said:
9 years ago
When we use "volatile" and "transient" in Java?
Jayesh said:
9 years ago
If instances of, native are keywords then when we use in our Java programs.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers