Can we declare an anonymous class as both extending a class
and implementing an interface?

Answer Posted / devarathnam

Hi... Yes we can declare anonymous class either extending a
class or implementing an interface but not both.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Realized?

1894


How do you use compareto method?

735


Which are the two subclasses under exception class?

747


What are desktop procedures?

785


what is the swingutilities.invokelater(runnable) method for? : Java thread

775


What is thread synchronization in java?

657


What is constant in programming?

756


What is default constructors?

717


What is a line separator in java?

718


Why pass by reference is not possible in java?

700


What are the three parts of a lambda expression?

728


What is data movement?

874


How does callback work in java?

798


What is a flag and how does it work?

710


Explain about transient variables in java?

841