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 | 108185265 | 1 | 1 | 0m 09s | 91 |
| #6 | bommasam000 | 1 | 1 | 0m 14s | 86 |
| #7 | parth.taur227 | 1 | 1 | 0m 20s | 80 |
| #8 | ravi.palepu | 1 | 1 | 0m 28s | 72 |
| #9 | patrickmeijer009 | 1 | 2 | 0m 43s | 47 |
| #10 | psak12 | 1 | 2 | 0m 46s | 44 |
Items per page:
10
1 – 10 of 18
APFIVE