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;5
1095 5b5cc6cee4d2b4197774e2ac
Q: 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;
- 1TRUEtrue
- 2FALSE Answer & Explanation Answer:false
- Show Answer
- Workspace
- Discuss