An inner class has access to all fields and methods (including private fields and methods) of its outer containing class . Inner classes cannot implement interfaces. An inner class object contains implicit reference to the enclosing class object.
Read moreWhich is true about an anonymous inner class it can extend exactly one class and implement exactly one interface it can extend exactly one class and?
Ans: C Explanation: Option C is correct because the syntax of an anonymous inner class allows for only one named type after the new , and that type must be either a single interface (in which case the anonymous class implements that one interface) or a single class (in which case the anonymous…25 Ara 2018
Read more