MCQs > IT & Programming > Java > 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'); } }

Java MCQs

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"); } }

Answer

Correct Answer: _START_STATIC_BIN_BASE_INIT_CONST_|_INIT_CONST

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Java MCQ Questions

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it