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 object-oriented paradigm?

1069


how do I create a runnable with inheritance? : Java thread

985


What is immutable data?

1061


When is an object subject to garbage collection?

1075


Is string is a class in java?

968


How do you decide when to use arraylist and linkedlist?

991


How can we create an immutable class in java?

1071


What is the common usage of serialization? What exceptions occur during serialization?

1131


What is scope & storage allocation of static, local and register variables? Explain with an example.

1017


What is the difference between a window and a frame in java programming?

1140


How do you check if a string is lexicographically in java?

960


What is instance means in java?

1054


Which method must be implemented by all threads?

1266


What are reference variables in java?

1129


When we should use serialization?

1027