Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is anonymous class?

Answer Posted / rimjhim

it is a local inner class without any name.
it is instantiated at the time of declaration and must be
extended by a class or implemented by an interface.

new [class name](argument list){anonymous class body};

overridden functions can be declared in this calss and it
can have only one new method inside it.more than one can
not be called anywhere.
using dot operator we can call that new function.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a container there are 5 components. I want to display all the component names, how will you do that?

2250


What is treeset in java collection?

1011


Should you use singleton pattern?

995


do I need to use synchronized on setvalue(int)? : Java thread

1055


Can we declare the static variables and methods in an abstract class?

1034


Can inner class have constructor?

1101


What is function declaration?

1024


How does hashmap work in java ?

1107


What is the meaning of 3 dots in java?

1209


How does arraylist work in java?

1170


How do you create a sop?

1046


How can a gui component handle its own events?

1152


What is off heap memory?

1069


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

1075


what is synchronization and why is it important? : Java thread

1140