Skip to content

Commit bff678f

Browse files
committed
Update java-multiple-choice-questions-answers.md
1 parent 715a05b commit bff678f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

java-multiple-choice-questions-answers.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,28 @@ D. p4
290290
D. P4
291291
292292
Explanation: Type mismatch: cannot convert from double to float
293-
```
293+
```
294+
#### Q. How many instance initializers are in this code?
295+
```java
296+
public class Bowling {
297+
{
298+
System.out.println();
299+
}
300+
public Bowling () {
301+
System.out.println();
302+
}
303+
static {
304+
System.out.println();
305+
}
306+
{
307+
System.out.println();
308+
}
309+
}
310+
```
311+
A. None
312+
B. One
313+
C. Two
314+
D. Three
315+
```
316+
C. Two
317+
```

0 commit comments

Comments
 (0)