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

What is JVM and is it platform independent?

553


Can the interface be final?

568


Why java is object oriented?

579


What is stringwriter?

532


What is treeset in java?

532






I want to print “hello” even before main is executed. How will you acheive that?

646


What is assembly language?

546


Why method overriding is used?

531


Is finalize() similar to a destructor?

544


What a static class can contains?

689


What is generic type?

560


What are the main uses of this keyword?

591


Explain the different forms of polymorphism?

559


How do you use find and replace?

501


What is void data type?

566