Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:16:55+00:00 2026-06-18T08:16:55+00:00

how compiler knows about nested types like : Nested inner classes Anonymous class Nested

  • 0

how compiler knows about nested types like :

  • Nested inner classes
  • Anonymous class
  • Nested Interface

…..etc

Need clearity…….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:16:57+00:00Added an answer on June 18, 2026 at 8:16 am

    Compiler extracts inner classes and creates separate *class file for each one. Inner class name is created as OuterClassName$InnerClassName. Anonymous inner classes do not have names, so their names are created as OuterClassName$1, OuterClassName$2, etc.

    Inner classes have special reference to instance of outer class using syntax OuterClassName.this.

    Since inner classes are compiled into separate class files JVM does not deal with inner classes at all. It deals with regular classes that have “special” names described above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I heard about compiler optimizations. For example the one when: while(myBool) doStuff(); compiler knows
I've got a question about how a C++ compiler knows how much space it
My question is mainly about performance. The compiler knows better that, for example, some
I need help: I've a nested object with associated Thread: public class XNodeViewModel {
I would like to know why the Visual C++ compiler gets me an warning/error
I have about 55 Java interfaces and 5 abstract classes. Each declaration uses the
I get error TryEnterCriticalSection undeclared identifier during compilation. Visual studio knows about the function
Somewhat academic question, but: How do value types like Int actually work ? I've
I have this two interfaces and classes: public interface Identifiable<T> { T getId(); }
For example when you introduce an static class in your source code, csc compiler

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.