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

What is hard code & soft code?

7 Answers   Cognizant, Wipro,


How do you sort an array in java?

0 Answers  


What is the main difference between java platform and other platforms?

0 Answers  


Why java does not support pointers?

0 Answers  


Is multiple inheritance supported by java?

0 Answers  


Difference between Encapsulation and Abstraction

4 Answers   Fidelity,


What is the synonym of framework?

0 Answers  


Can a static class implement an interface?

0 Answers  


what is interface in java? Explain

0 Answers  


Difference between static synchronization vs. Instance synchronization?

0 Answers  


What does a boolean method return?

0 Answers  


Is array a class in java?

0 Answers  


Categories