Multiple Choice Question

Quiz Guidelines

 

QID: 
15
Tags: 
Validated against: 
java8
Question: 

Given:

class HelloWorld{

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

}

A. Compilation fail

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

C. Compile and run successfully and print Hello23

D. Compile and run successfully and print Hello123

Q&A Set: