📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    In Java, which data type is used to store true or false

    values?
    A int Correct Answer Incorrect Answer
    B boolean Correct Answer Incorrect Answer
    C char Correct Answer Incorrect Answer
    D float Correct Answer Incorrect Answer
    E string Correct Answer Incorrect Answer

    Solution

    boolean can store only true or false.

    Practice Next
    ask-question