Skip to content

Commit 7b88194

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java-multiple-choice-questions-answers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ D. It will not compile without initializing on the declaration line
240240
B. It defaults to null.
241241
```
242242
#### Q. How many of the following methods compile?
243+
```java
243244
public class Test
244245
{
245246
public String convert(int value) {
@@ -257,6 +258,7 @@ public class Test
257258
System.out.println(obj.convert(10));
258259
}
259260
}
261+
```
260262
A. None
261263
B. One
262264
C. Two

0 commit comments

Comments
 (0)