What class must an inner class extend ? A. The top level class ---- does it mean static inner class ?? B. The Object class //yes C. Any class or interface //yes D. it must extend an interface //no
posted 16 years ago
"Must"? and, "Directly"? or indirectly?
It must extend Object or any other class. If it implements an interface only (like in an anonymous class), then it implicitly extends the class Object.
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
posted 14 years ago
shan Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however, your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy. Thanks again and we hope to see you around the ranch!!