C#, Perl, and Java Programming Fundamentals

Casual Mode - Take your time!

1 / 20
Correct
0
Incorrect
0
Score
0%
True/False

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?

  1. True
  2. False
Change Mode