Question: Which one is a valid declaration of a boolean?

Options

A : boolean b1 = 0;

B : boolean b2 = 'false';

C : boolean b3 = false;

D : boolean b4 = Boolean.false();

Click to view Correct Answer

Previous || Next

Language Fundamentals - General Questions more questions

Which is a valid keyword in java?

Which three are legal array declarations?

Which one of the following will declare an array and....

Which three are valid declarations of a char?

Which is the valid declarations within an interface definition?

Which three are valid declarations of a float?

Which is a valid declarations of a String?

What is the numerical range of a char?

Suppose that you would like to create an instance of....

Which class does not override the equals() and hashCode() methods,....

Declarations and Access Control - General Questions more Online Exam Quiz

Declarations and Access Control - General Questions

Objects and Collections - General Questions

Threads - General Questions

Automobile Engineering - Part 1

Compressors, Gas Dynamics and Gas Turbines - Part 1

Engineering Materials - Part 1