Java Programming - Language Fundamentals - Discussion
Discussion Forum : Language Fundamentals - General Questions (Q.No. 5)
5.
Which is a valid keyword in java?
Answer: Option
Explanation:
interface is a valid keyword.
Option B is wrong because although "String" is a class type in Java, "string" is not a keyword.
Option C is wrong because "Float" is a class type. The keyword for the Java primitive is float.
Option D is wrong because "unsigned" is a keyword in C/C++ but not in Java.
Discussion:
26 comments Page 3 of 3.
Abhishek Raj said:
1 year ago
"Float" is a valid keyword in Java.
(1)
Anand said:
1 decade ago
What is a class type? Any example?
Raja said:
1 decade ago
interface interface name
{
....
}
{
....
}
Bala said:
1 decade ago
Why unsigned not used in java?
Brandon ceasar said:
8 years ago
@Vijaya.
About 49 keywords.
About 49 keywords.
(1)
Saurabh said:
1 decade ago
String is a keyword.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers