Java Compile-Time Syntax Error
Which of the following code snippets will produce a compile-time error due to incorrect syntax?
A
int b = 10;
System.out.println(b);
B
int b = 10
System.out.println(b);
C
int b = 10;;
System.out.println(b);
D
int b = 10;
System.out.println(b);
System.exit(0);
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | leftoverjluck | 2 | 2 | 0m 34s | 166 |
| #2 | alchemax043 | 3 | 3 | 2m 15s | 165 |
| #3 | 6test6ing6 | 1 | 1 | 0m 00s | 100 |
| #4 | mavericklin125 | 1 | 1 | 0m 00s | 100 |
| #5 | zhenmunse | 1 | 1 | 0m 03s | 97 |
| #6 | rahyco.perez27 | 1 | 1 | 0m 09s | 91 |
| #7 | 108185265 | 1 | 1 | 0m 09s | 91 |
| #8 | Potter16 | 1 | 1 | 0m 10s | 90 |
| #9 | bommasam000 | 1 | 1 | 0m 14s | 86 |
| #10 | Wilbert.Ankomah27 | 1 | 1 | 0m 18s | 82 |
Items per page:
10
1 – 10 of 25
