Multiple Choice Question

Quiz Guidelines

 

QID: 
17
Tags: 
Validated against: 
java8
Question: 

Given:

class HelloWorld{

  public static void main (String[] args)
  {
    System.out.println("Hello"+1+3-2);
  }

}

A. Compilation fail

B. Compilation succeeds, but execution will fail with an exception

C. Compile and run successfully and print Hello123

D. Compile and run successfully and print Hello11

Q&A Set: