Skip to content

Commit 8721c49

Browse files
committed
Update java-multiple-choice-questions-answers.md
1 parent b24bbc4 commit 8721c49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java-multiple-choice-questions-answers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public class Test {
9191
}
9292
```
9393
Output
94-
```
94+
```java
9595
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
9696
Type mismatch: cannot convert from int to boolean
9797

@@ -120,7 +120,7 @@ public class Test {
120120
}
121121
```
122122
Output
123-
```
123+
```java
124124
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
125125
Cannot make a static reference to the non-static field two
126126

@@ -165,7 +165,7 @@ public class Test
165165
}
166166
```
167167
Output
168-
```
168+
```java
169169
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
170170
Unreachable catch block for ArithmeticException. It is already handled by the catch block for Exception
171171

0 commit comments

Comments
 (0)