what is an anonymous class?

Answer Posted / kapil dalke

anonymous class means its does not have a tag name.
as you know that...
when u declare the class
class Tcs
{
......
....
}
But its not anonymous class because it has class name(tag);
if u declare like that
class
{
............
.........
}
then its called aonymous class

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does a for loop work java?

546


Which variables are stored in stack?

451


Can java program run without jre?

571


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

1803


How do you sort a list in java?

582






What is a void in java?

584


What is tcp and udp?

604


What is meant by inheritance and what are its advantages?

581


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

839


What does java stand for?

558


What is difference between local variable and global variable?

474


What is formatted output in java?

501


What is a ?

755


How do you detect memory leaks?

584


Why we use set in java?

518