What will the following program print?
public class TestClass
{
public static void main(String[] args)
{
int x = 1;
int y = 0;
if( x/y ) System.out.println("Good");
else System.out.println("Bad");
}
}
a. Good
b. Bad
c. Exception at runtime saying division by Zero.
d. It will not compile.
e. None of the above.
De novo ... respondam sem compilar !!!
Valeu !!
