Hi,
The code below produces...Runtime error.But, the answer given is d.Produces no output.
public class
Test {
public void add(int a) {
loop: for (int i = 1; i < 3; i++){
for (int j = 1; j < 3; j++) {
if (a == 5) {
break loop;
}
System.out.println(i * j);
}}}}
a.Generate a runtime error
b.Throw an ArrayIndexOutOfBoundsException
c.Print the values: 1, 2, 2, 4
d.Produces no output
Can you please...tell me if am wrong somewhere.
Mukti