Java, Programming Languages, Programming, Inheritance, Computer Science.
subClass2.printValues(); } } // Output: // Called from SubClass: // SuperClass: value1 | value2 | SubClass: initialized inside Instance initializer block | SubClass: Initialized from instance method // Called from SubClass: // SuperClass: SubClass value1 | SubClass value2 | SubClass: initialized