TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.17] using break in main function

1    public class Test2 {
2    public static void main(String[] args) {
3    System.out.println("Hello");
4    break;
5    System.out.println("Hi");
6  }
7  }



A)  Hello
B)  Hello Hi   
C)  Runtime exception.  
D)  Compilation error at line no-4.

Click to See Answer
D)  Compilation error at line no-4.    

Next | continue in switch case

Previous | error with i

Hemen Ashodia [paper setter]
Register & recharge
Male Female
I agree Terms and Conditions