Skip to content

Commit 6e65dd3

Browse files
committed
Update java-multiple-choice-questions-answers.md
1 parent 7a98a01 commit 6e65dd3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

java-multiple-choice-questions-answers.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ D. p4
303303
D. P4
304304
```
305305
**Explanation**: Type mismatch: cannot convert from double to float
306+
<div align="right">
307+
<b><a href="#">↥ back to top</a></b>
308+
</div>
306309

307310
#### Q. How many instance initializers are in this code?
308311
```java
@@ -361,6 +364,10 @@ D. The code compiles but throws an exception at runtime
361364
```
362365
C. The code does not compile.
363366
```
367+
<div align="right">
368+
<b><a href="#">↥ back to top</a></b>
369+
</div>
370+
364371
#### Q. Which two primitives have wrapper classes that are not merely the name of the primitive with an uppercase letter?
365372
A. byte and char
366373
B. byte and int
@@ -410,6 +417,9 @@ D. None of the above; they all compile
410417
B. double num = 2._718;
411418
```
412419
**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>
413423

414424
#### Q. Which of the following is the output of this code, assuming it runs to completion?
415425
```java

0 commit comments

Comments
 (0)