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();
}
}
Correct Answer: _STATIC_MAIN_INIT_CONST
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions