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 the definition of tree ?

0 Answers   Amazon,


Can u overload main()method.Give with example.

6 Answers   IBM, Schimatic Technologies,


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

0 Answers  


Are functions objects in java?

0 Answers  


What are the states of thread in java?

0 Answers  






What are drawbacks of singleton class?

0 Answers  


What do you mean by platform independence?

0 Answers  


What are the five major types of reference sources?

0 Answers  


program to validate the IP address? Validity range should be 0 to 255

1 Answers   Huawei,


What is the basically use of finally while we know it is always executed but why?

5 Answers   Oracle, TCS,


could you run the java program without main method?

6 Answers  


How to solve the problem of generating the unique hash keys with hash function?

0 Answers  


Categories