Skip to main content

Q) What are the default values given by JVM for primitive class scoped variables (non-local variables)?



A)

->For all numerical types JVM gives “zero” as default value.
-> For all Boolean types it is “false” is given by JVM.
->For all char type JVM gives “null character” (\u000). null is different & null character is different.

Comments