Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 417 Page Views: 

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



Posted By: Avi Date: 2 November 2010 03:22:53 PM
 Answer:

An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.


Posted By: avibtech


Date: 2 November 2010 03:22:53 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image 5qchPg
Related Questions
Core Java : What is anonymous class ?

What is anonymous class ?

An anonymous class is a type of inner class that don't have any name.
Category: Core Java Date: 11/7/2010 1:41:51 AM
Core Java : What is object cloning?

What is object cloning?

It is the process of duplicating an object and the two objects will exist in the memory at the same ....
Category: Core Java Date: 11/7/2010 1:08:51 AM
Core Java : What is the range of the short type?

What is the range of the short type?

from -(2^15) to 2^15 - 1.
Category: Core Java Date: 11/7/2010 12:03:48 AM
Core Java : What is a stream?

What is a stream?

A stream is a flow of data from one direction to another.
Category: Core Java Date: 11/6/2010 11:19:52 PM
Core Java : For which statements does it make sense to use a label?

For which statements does it make sense to use a label?

The only statements for which it makes sense to use a label are those statements that can enclose a ....
Category: Core Java Date: 11/6/2010 11:18:53 PM