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

Answer Posted / devnaga

Yes. U r right. U can fin it from
http://dev.fyicenter.com/interview/java_8.html

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you ever used hashtable and dictionary?

786


why not override thread to make a runnable? : Java thread

745


how do I create a runnable with inheritance? : Java thread

731


Where are the local variables stored?

737


What modifiers may be used with an inner class that is a member of an outer class in java programming?

746


What is meant by object oriented programming – oop?

747


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

698


What is the difference between arraylist and hashset in java?

733


What is the maximum size of arraylist in java?

696


What does string [] args mean?

728


How do you calculate roots in java?

757


What are alternatives to java serialization?

799


Explain the importance of throws keyword in java?

755


How do you use spaces in java?

722


What do you meant by active and passive objects?

805