What will be the output of the following Java snippet?

Last Updated :
Discuss
Comments

What will be the output of the following Java snippet?

Java
public class Geeks {
    static int $count = 5;
    public static void main(String[] args) {
        System.out.println($count);
    }
}


5

Compilation Error


Runtime Error


Undefined Behavior

Share your thoughts in the comments