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 4 of 7.
Puri kiki said:
1 decade ago
"goto" have got what purpose in java?
Mdn said:
1 decade ago
The default can optionally be used in a switch statement to label a block of statements to be executed if no case matches the specified value.
Pallavi said:
1 decade ago
Is default is a keyword?
Lishit said:
1 decade ago
Instanceof is an operator which operates on an object and determines whether it belongs to the same class. So its not a keyword. While keyword are reserved words which can be used for achieving certain situation which doesn't give any result so instanceof is an operator.
Frillo said:
1 decade ago
Java has a "reserved word" called goto, but it's not a keyword since it is not used.
Sanku said:
1 decade ago
Final is the keyword that which cannot be used as identifier.
Native is the word which the compiler is dependent on OS.
Native is the word which the compiler is dependent on OS.
Anu said:
1 decade ago
strictfp is a keyword in the Java programming language that restricts floating-point calculations to ensure portability. It was introduced into Java with the Java virtual machine (JVM) version 1.2.
Padmashri said:
1 decade ago
When we use strictfp and assert in java?
Mukesh meena said:
1 decade ago
Goto performs a one-way transfer of control to another line of code. Goto is not used and has no function.
Kunal said:
1 decade ago
The goto keyword is not available to the programmer that means the programmer can't use the goto keyword.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers