Can an anonymous class be declared as implementing an
interface and extending a class?

Answer Posted / janet

An anonymous class may implement an interface or extend a
superclass, but may not be declared to do both.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bubble sorting in java?

591


what is an objects lock and which objects have locks? : Java thread

525


Why synchronization is important in java?

558


What is oop principle in java?

544


What are filterstreams?

604






What is final method?

578


What is java util concurrentmodificationexception?

495


what do you understand by the term string with respect to java?

524


What is a Transient Object?

629


What is the primitive type byte?

573


What is equlas() and hashcode() contract in java? Where does it used?

602


What does string mean in java?

625


How do you escape a string?

501


What is meant by string is immutable?

515


What are alternatives to java serialization?

596