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

What is a priority queue java?

985


What is a flag value?

1016


How does hashset work in java?

1112


What is mysql driver class name?

1139


Is static a keyword in java?

977


Can java hashmap have duplicate keys?

1026


Explain JMS in detail.

1017


What is the final keyword?

982


What are the procedures?

1057


Can list contain null in java?

1084


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

1043


What are the three parts of a lambda expression? What is the type of lambda expression?

1031


Can we modify the throws clause of the superclass method while overriding it in the subclass?

1031


what is comparable and comparator interface?

985


What is object-oriented paradigm?

1061