Java Syntax Question 1

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 Braces 
public static void main(String[] args){

Note

A block begins with an opening brace { and ends with a closing brace }.




PreviousNext

Related