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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / bindu

no.if the private class extends abstract class.then v cant
create object to that.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

0 Answers  


What does java edition mean?

0 Answers  


Is map ordered in java?

0 Answers  


If your team member writes code with lots of static variables and static methods, will it cause any side effects?

3 Answers   KPIT,


What are parsers? Dom vs sax parser.

0 Answers  






Is JRE required to compile Java files ?

4 Answers   HCL,


What are the differences between string and stringbuffer?

0 Answers  


what is optional in java 8?

0 Answers  


What is the difference between the paint() and repaint() methods in java programming?

0 Answers  


what is difference Between Core Java and advance java

60 Answers   HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

0 Answers  


In java, what is the difference between method overloading and method overriding?

0 Answers  


Categories