Multiple Choice Question

Quiz Guidelines

 

QID: 
16
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: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!