Examveda
Examveda

In Java, the word true is ................

A. A Java keyword

B. A Boolean literal

C. Same as value 1

D. Same as value 0

Answer: Option B


This Question Belongs to Java Program >> Data Types And Variables

Join The Discussion

Comments ( 6 )

  1. Devi Kalyani
    Devi Kalyani :
    2 years ago

    Any constant value which can be assigned to the variable is called literal/constant
    eg: int x=100; //here 100 is literal
    boolean b=true; // here true is literal

  2. Devi Kalyani
    Devi Kalyani :
    2 years ago

    Any constant value which can be assigned to the variable is called literal/constant
    eg: int x=100; //here 100 is literal
    boolean b=true; // here true is literal

  3. Aditya Vaste
    Aditya Vaste :
    2 years ago

    Actually There a 53 "Reserved Words" are there in java (not keywords)

    That 53 "Reserved Words" in java and they are divided into two categories...
    1) Keywords (48)
    2) Reserved Literals (3)

    that 3 "Reserved Literals" are true,false,null.
    And keywords are like if,else,break......( And further you know very well )

  4. Md Mahabul
    Md Mahabul :
    3 years ago

    please explain it
    I known that it is a keyword

  5. Kkk Shaikh
    Kkk Shaikh :
    3 years ago

    What logic will used

  6. Aman Sharma
    Aman Sharma :
    5 years ago

    how this is possible??

Related Questions on Data Types and Variables