what is an anonymous class?

Answer Posted / dipesh

Suppose

Class My implements InetrfaceName{

My my=new InterfaceName(){ write mehtod impl here of
interface};

here we r creating instance of class (we dont know name)to
my

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between int and integer in java?

540


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

592


Which collection does not allow duplicates in java?

475


What is command line argument

712


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1513






Differentiate between class and structure.

635


What do you understand by the term string pool?

570


Is a method a procedure?

559


What is the use of put method?

518


What is the difference between a synchronized method and a synchronized block?

609


What is the java idl system?

585


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

635


How is final different from finally and finalize?

497


what state does a thread enter when it terminates its processing? : Java thread

602


What are the differences between include directive and include action?

548