Mega Offer Avail 65% Off in CA IPCC and 50% Off in all CA CS CMA subjects.Coupon- IPCEXAM65 & EXAM50. Call: 088803-20003

CA Final Online Classes
Prodamy

Share on Facebook

Share on Twitter

Share on LinkedIn

Share on Email

Share More

What is an anonymous inner class?


sanjay mca   21 January 2021

sanjay mca

 19 points

| My Other Post

How is it different from an inner class?

Prachi Bansal

Prachi Bansal   29 January 2021

Prachi Bansal

 38 likes  1850 points

View Profile | My Other Post

An anonymous inner class is an inner class name declared without a class name.

The difference between the both would be:-

1. An anonymous inner class has no class name whereas an inner class has a class name. 

2. An inner class consists of a class declared within a method whereas an anonymous inner class is declared when an instance is created

I hope that helps!


Leave a reply

Your are not logged in . Please login to post replies

Click here to Login / Register  





Trending Tags