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] */
}
}
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
More Java MCQ Questions