Question: Which one is a valid declaration of a boolean? boolean b1 = 1; boolean b2 = false; boolean b3 = false; boolean b4 = true

  1. Which one is a valid declaration of a boolean?

    1. boolean b1 = 1;
    2. boolean b2 = ‘false’;
    3. boolean b3 = false;
    4. boolean b4 = ‘true’
    5. None of these

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer C boolean b3 false Explanati... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!