What is the output of the following Java program?

Last Updated :
Discuss
Comments

What is the output of the following Java program?

Java
public class Geeks {
    public static void main(String[] args) {
        int number = 10;
        System.out.println(Number);
    }
}

10

Compilation Error


Runtime Error


Undefined Behavior

Share your thoughts in the comments