MCQs > IT & Programming > Java > Which assignments are valid, if put instead of /* [placeholder] */ in the given code? (check any that apply) public class Test114 { public static void main(String[] args) { class A { class A2{} } class A2 extends A {} /* [placeholder] */ } }

Java MCQs

Which assignments are valid, if put instead of /* [placeholder] */ in the given code? (check any that apply)

public class Test114 {

 public static void main(String[] args) {

class A { class A2{}  }

class A2 extends A {}

/* [placeholder]   */

}

}

 

Answer

Correct Answer: A.A2 a = new A2().new A2();

Explanation:

Note: This question has more than 1 correct answers

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