C#, Perl, and Java Programming Fundamentals

Time: 00:00:00
0
Attempted
20
Not Attempted
0
Marked For Review
0
Attempted & Reviewed

Question 1 of 20

public class Sample{ public static void main(String[] args){ int i=5; if(i==5) throw new ArithmeticException("i is 5"); System.out.println(i); } } Does the code compiles fine?

Select Your Answer:

All Questions

Attempted
Not Attempted
Marked for Review
Attempted & Reviewed
Current