Java Syntax Question 2

Question

What is the output of the following code?



public class Main {
  public static void main(String[] args) {  
    System.out.println("A!"); 
    System.out.println("B"); 
    System.out.println("C")
  } 
}


Compile time error
Missing Semicolons after ("C")

Note

Each statement ends with a statement terminator ;.

Every statement in Java ends with a semicolon ;, which is known as the statement terminator.




PreviousNext

Related