Order of initialization/instantiation of class variables of derived class and invoking of base class constructor
问题 I want to figure out the order of 1) initialization/instatiation of derived class variables 2) invoking of base class constructor in this code snippet public class base { int y = 1; public base() { y = 2; function(); } void function () { System.out.println("In base Value = " + String.valueOf(y)); } public static class derived extends base { int y = 3; public derived() { function(); } void function () { System.out.println("In derived Value = " + String.valueOf(y)); } } public static void main