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 the use of anonymous inner classes ?

Answer Posted / jubin thomas, bhilai(mpccet)

Anonymous class is a class which has no methods defined in
it.
Eg.
class a
{
public void hello();
}
class b
{
a obj = new a();
public void hello()
{
System.out.println("Hello World");
}
}

Is This Answer Correct ?    2 Yes 64 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is callablestatement? How you can call stored procedure to pass in parameter?

980


Differentiate between the constructors and methods in java?

892


What is the role of garbage collector in java?

901


Why synchronization is important?

977


Is null function in java?

975


What is the byte range?

980


What is the integer of 16?

929


What is the use of keywords in java?

935


Is arraylist zero based?

1006


What does null mean in java?

1016


What are the important features of Java 11 release?

1055


What is array list in java?

1023


What is string value?

1088


Can an interface be final?

972


What is data and its types?

953