We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e8f21 commit 7a98a01Copy full SHA for 7a98a01
java-multiple-choice-questions-answers.md
@@ -179,6 +179,10 @@ Exception in thread "main" java.lang.Error: Unresolved compilation problem:
179
180
at Test.main(Test.java:12)
181
```
182
+<div align="right">
183
+ <b><a href="#">↥ back to top</a></b>
184
+</div>
185
+
186
#### Q. What is the output of following program?
187
```java
188
public class Test
@@ -235,6 +239,10 @@ D. The code does not compile
235
239
236
240
**Explanation**: The local variable chair may not have been initialized
237
241
242
243
244
245
238
246
#### Q. Which is correct about an instance variable of type String?
247
A. It defaults to an empty string.
248
B. It defaults to null.
0 commit comments