What is an anonymous inner class?

How is it different from an inner class?

Replies (1)

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  

Company
21 July 2026
Chartered Accountant

Keshri & Associates

Thiruvananthapuram

CA

View Details
Company
29 July 2026
Audit Executive

RBSM Corporate Advisors Private Limited

Pune

CA

View Details
Company
06 July 2026
Accountant

Agarwal Anoop and Associates

Noida

CA Final

View Details
Company
11 July 2026
CA semi qualified

Vakilsearch.com

Chennai

CA Inter

View Details
Company
29 July 2026
ACCOUNTANT

ONESTEP GST SOLUTION

New Delhi

B.Com

View Details
Company
23 July 2026
CA Inter

Vikram Jadhav and Company

Pune

CA Inter

View Details
Company
16 July 2026
Manager - Finance & Accounts

Aliens Group

Hyderabad

CA Final

View Details
Company
16 July 2026
CA Inter, CA Intermediate, CA IPCC, CA CPT , CA SemiQualifie

Vakilsearch.com

Chennai

CA Inter

View Details