MCQs > IT & Programming > Java > Output of the given program? public class Test117 { { System.out.print(«_INIT»); } static { System.out.print(«_STATIC»); } Test117() { System.out.print(«_CONST»); } public static void main(String[] args) { System.out.print(«_MAIN»); new Test117(); } }

Java MCQs

What is the output of the given program?

 

public class Test117 {

{

System.out.print(«_INIT»);

}

static {

System.out.print(«_STATIC»);

}

Test117() {

System.out.print(«_CONST»);

}

public static void main(String[] args) {

System.out.print(«_MAIN»);

new Test117();

}

}

Answer

Correct Answer: _STATIC_MAIN_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

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it