Skip to content

Commit 7a98a01

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

java-multiple-choice-questions-answers.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ Exception in thread "main" java.lang.Error: Unresolved compilation problem:
179179

180180
at Test.main(Test.java:12)
181181
```
182+
<div align="right">
183+
<b><a href="#">↥ back to top</a></b>
184+
</div>
185+
182186
#### Q. What is the output of following program?
183187
```java
184188
public class Test
@@ -235,6 +239,10 @@ D. The code does not compile
235239
```
236240
**Explanation**: The local variable chair may not have been initialized
237241

242+
<div align="right">
243+
<b><a href="#">↥ back to top</a></b>
244+
</div>
245+
238246
#### Q. Which is correct about an instance variable of type String?
239247
A. It defaults to an empty string.
240248
B. It defaults to null.

0 commit comments

Comments
 (0)