Home / Java Programming / Language Fundamentals :: Discussion

Discussion :: Language Fundamentals

  1. Which is a valid keyword in java?

  2. A.
    interface
    B.
    string
    C.
    Float
    D.
    unsigned

    View Answer

    Workspace

    Answer : Option A

    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.


Be The First To Comment