Home / Java Programming / Objects and Collections :: Discussion

Discussion :: Objects and Collections

  1. Which of the following are Java reserved words?

    1. run
    2. import
    3. default
    4. implement

  2. A.
    1 and 2
    B.
    2 and 3
    C.
    3 and 4
    D.
    2 and 4

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    (2) - This is a Java keyword

    (3) - This is a Java keyword

    (1) - Is incorrect because although it is a method of Thread/Runnable it is not a keyword

    (4) - This is not a Java keyword the keyword is implements


Be The First To Comment