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 2 of 7.
Kotiyal said:
1 decade ago
The 'final' is a keyword in Java. After using this keyword on class we can't extend that class and on variable we can't change the value of that variable.
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.
Sundar said:
1 decade ago
@Tarun
You are wrong. Java has the keyword 'goto' (but not used).
Refer: http://en.wikipedia.org/wiki/List_of_Java_keywords
You are wrong. Java has the keyword 'goto' (but not used).
Refer: http://en.wikipedia.org/wiki/List_of_Java_keywords
Vishwanath said:
1 decade ago
Strictfp:.
A Java keyword used to restrict the precision and rounding of floating point calculations to ensure portability.
A Java keyword used to restrict the precision and rounding of floating point calculations to ensure portability.
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)
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.
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.
Sreedhar said:
1 decade ago
What is the use of goto keyword in java?
If there is no use then why they included this as keyword.
If there is no use then why they included this as keyword.
Praveen reddy said:
1 decade ago
Nag and swarna: native is a valid keyword used in java. It is used to declare the modify methods.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers