Which declaration initializes a boolean variable?
A.
boolean h = 1;
B.
boolean k = 0;
C.
boolean m = null;
D.
boolean j = (1 < 5) ;
Explanation:
The primitive type boolean has only two possible values: true and false. Here j is set
to (1 <5), which evaluates to true.