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 6 of 7.
Naresh.K said:
1 decade ago
The final is a keyword. This is similar to const keyword in other languages. This keyword may not be used as identifiers i.e. you cannot declare.
Native is a Java keyword that is used in method declarations to specify.... This keyword signals to the Java compiler that the function is a native language.
Native is a Java keyword that is used in method declarations to specify.... This keyword signals to the Java compiler that the function is a native language.
Siva said:
1 decade ago
Is "finally" a keyword? where it is used?
Srinivas said:
1 decade ago
What is the meaning of "final" in java, when we need 'final', is 'final' is a key word in java.
Swarna said:
1 decade ago
What is the use of native key word?
Archana said:
1 decade ago
Is if is a keyword.
Ravindra said:
1 decade ago
What is the actual use of virtual? Can you tell me something.
Nag said:
1 decade ago
Can anybody explain strictfp and assert and Instanceof " & "Native".
Bharat said:
1 decade ago
What is use of "Instanceof"&"Native".
Saranya said:
1 decade ago
Do we have goto in java.
Srinivas said:
1 decade ago
When we use strictfp and assert in java?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers