In the following pieces of code, B and D will compile without any erro

Loading

โœช Choose the correct option.

In the following pieces of code, B and D will compile without any error. True or false ?

A: StringBuffer sb1 = “abcd”;

B: Boolean b = new Boolean(“abcd”);

C: byte b = 255;

D: int x = 0x1234;

E: float fl = 1.2;

A. TRUE
B. FALSE
C. NULL
D. NULL

Leave a Comment