File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,9 @@ D. p4
303
303
D. P4
304
304
```
305
305
** Explanation** : Type mismatch: cannot convert from double to float
306
+ <div align =" right " >
307
+ <b><a href="#">↥ back to top</a></b>
308
+ </div >
306
309
307
310
#### Q. How many instance initializers are in this code?
308
311
``` java
@@ -361,6 +364,10 @@ D. The code compiles but throws an exception at runtime
361
364
```
362
365
C. The code does not compile.
363
366
```
367
+ <div align =" right " >
368
+ <b><a href="#">↥ back to top</a></b>
369
+ </div >
370
+
364
371
#### Q. Which two primitives have wrapper classes that are not merely the name of the primitive with an uppercase letter?
365
372
A. byte and char
366
373
B. byte and int
@@ -410,6 +417,9 @@ D. None of the above; they all compile
410
417
B. double num = 2._718;
411
418
```
412
419
** Explanation** : Underscores are allowed between any two digits in a numeric literal. Underscores are not allowed adjacent to a decimal point
420
+ <div align =" right " >
421
+ <b><a href="#">↥ back to top</a></b>
422
+ </div >
413
423
414
424
#### Q. Which of the following is the output of this code, assuming it runs to completion?
415
425
``` java
You can’t perform that action at this time.
0 commit comments