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 / niranjanravi

An Anonymous class is a class which is defined at run time
without having any name and it is instantiated and declared
at the same place.
Syntax:
new class classname(){}
new interface interfacename(){}
Keyword extends and implements are usedin this class.
It is always implicitly final.
It is never static or final.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are primitives objects?

1064


What is the difference between menuitem and checkboxmenu item?

1341


What is the difference between a break statement and a continue statement?

1040


What is variable and example?

967


What do you mean by chromounits in java8?

957


How to find the largest value from the given array.

1013


Can you call one constructor from another if a class has multiple constructors?

1039


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

990


What is a numeric digit?

1087


Tell me how many ways are there to initialise an integer with a constant.

1110


What is function declaration?

969


What is import java util arraylist?

1185


Explain the difference between private, public, package and protected in java?

1045


What is tcp ip in java?

1119


Write a function to print Fibonacci series and Tribonacci series?

1184