What is the output of the given program? public class Test121 extends _Test121 { { System.out.print("_INIT"); } static { System.out.print("_STATIC"); } Test121() { System.out.print("_CONST"); } public static void main(String[] args) { new Test121(); System.out.print("_|"); new Test121(); } } class _Test121 { { System.out.print("_BIN"); } static { System.out.print("_START"); } _Test121() { System.out.print("_BASE"); } }
Correct Answer: _START_STATIC_BIN_BASE_INIT_CONST_|_INIT_CONST
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions