Java Programming - Language Fundamentals - Discussion

Discussion Forum : Language Fundamentals - General Questions (Q.No. 5)
5.
Which is a valid keyword in java?
interface
string
Float
unsigned
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 2 of 3.

Palaniarjun said:   8 years ago
String is not a key word, String is one of the predefined class in java.

Vijaya said:   9 years ago
How many keywords are there in Java programming language?

Rajat said:   1 decade ago
Why string is a class type if I said it is Java type?

Jaya surya said:   2 years ago
String is an java data type and immutable in nature.

Harsh thakkar said:   6 years ago
Float is also valid because it is wrapper class.

Harsh thakkar said:   6 years ago
Float is also valid because it is wrapper class.

Raghu said:   1 decade ago
Difference between class and interface?

Harry said:   1 decade ago
@Lemky.

float is keyword not Float.

Alex said:   1 decade ago
Why interface calling valid keyword?
(1)

Kote said:   9 years ago
Can you explain about final keyword.


Post your comments here:

Your comments will be displayed after verification.