Default value of variable
package com.scjp.test; class Sample3 { int Size; public static void main(String args[]) { Sample3 objSample3 = new Sample3(); } Sample3() { System.out.println(Size); } }
Default value of variable
package com.scjp.test; class Sample3 { int Size; public static void main(String args[]) { Sample3 objSample3 = new Sample3(); } Sample3() { System.out.println(Size); } }