Are object references defaulted?


Yes. Object references are defaulted to null.

What are the default values of primitive data types?


The default values of primitive data types are
boolean data type is false.
byte, short, int and long is 0.
float and double is 0.0.
char is ‘u000’.

 

Why the main method is declared static?


main method is the entry point for a Java application and main method is called by the JVM even before the instantiation of the class hence it is declared as static. static methods can be called even before the creation of objects.

What is the difference between Path and Classpath?


Path and Classpath are O.S (Operating System) level environment variables. Path is used to define where the system can find the executable (.exe) files and Classpath is used to specify the location .class files.