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
16 September 2026
Internal Audit - Team Lead

Consulting & Beyond

Chennai

CA

View Details
Company
ARTICLESHIP 21 September 2026
CA Article Assistant

KK & Company Chartered Accountant

Pune

CA Inter

View Details
Company
19 September 2026
CA/Semi-CA/BCom

Pravin Sarvaiya

Mumbai

CA Inter

View Details
Company
ARTICLESHIP 07 September 2026
Article/ Paid Assistant

Murali and Sumeet Chartered Accountant

Bengaluru

CA Foundation

View Details
Company
18 September 2026
Accounts & Finance Specialist

ULTRA CHEMICAL WORKS

Thane

CA Final

View Details
Company
Featured 12 September 2026
Assistant Manager - Finance & Compliance

Naveen Fintech Pvt Ltd

Kolkata

CA Inter

View Details
Company
09 September 2026
Semi Qualified CA / CA Inter - 2 Groups Cleared

Getmyca Consultant Pvt Ltd

New Delhi

CA Inter

View Details
Company
ARTICLESHIP 26 August 2026
Article Assistant

ANIVESH CONSULTANTS LLP

Gurgaon

CA Inter

View Details