Which statements are true?.
Select the two correct answers.
objRef
is an instance of any nested class within the class Outer, the expression (objRef
instanceof Outer) will evaluate to true.(a) and (d)
No other static members, except final static fields, can be declared within a non-static member class.
Members in outer instances are directly accessible using simple names (provided they are not hidden).
Fields in nested static member classes need not be final.
Anonymous classes cannot have constructors, since they have no names.
Nested classes define distinct types from the enclosing class, and the instanceof operator does not take the type of the outer instance into consideration.