What is the output of the following code?
public class Main { public static void Main(String[] args) { System.out.println("A"); System.out.println("F"); System.out.println("P"); } }
No output
Java is case sensitive.
The function name main
is misspelled as Main
Java cannot find the starting point of Main class.
It should be:
public static void main(String[] args) {