Menu
Question Index
...

Which of the following statements are valid?

public class FindValidStatement {
    public class ClassA { }
    public class ClassB { }
    public void initialize() {
        new FindValidStatement(); // STATEMENT A
        new FindValidStatement().new ClassA(); // STATEMENT B
        new FindValidStatement.ClassB();// STATEMENT C
    }
}


Only STATEMENT A is valid
STATEMENT A, B are valid
STATEMENT A, C are valid
STATEMENT A, B and C are valid
None

Doubts

Problems

Topic: Advanced Java Programming Concepts

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App