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 8773993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:26:56+00:00 2026-06-13T18:26:56+00:00

While compiling the code of Tic Tac Toe and also while running some codes

  • 0

While compiling the code of Tic Tac Toe and also while running some codes in java using swing and awt packages. I’m getting a $ appended class file generation, parallel to the ClassName.class file. What may be the reason? Its Whether due to the usage of ActionListeners, it Happens. Usually these kind of creation of .bak file will be generated while doing C programs involving structures.

Support needed regarding these two scenarios.

  • 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-13T18:26:58+00:00Added an answer on June 13, 2026 at 6:26 pm

    Class files containing $ in their names are nothing but the inner classes or anonymous inner classes that you might have used inside your top-level class.

    For e.g, If you have a class declaration like this: –

    public class A {
        public class B {
        }
    }
    

    Then you will have two class files generated: – A.class and A$B.class.
    This shows the containment of class B inside class A.

    In case of ActionListener this is what is happening, in your code.

    UPDATE: –

    If you are using anonymous inner class, then also you will get class name with $ in it: –

    interface A {
       public void show();
    }
    
    public class Foo {
        public static void main(String[] a) {
    
            new A() {
                @Override
                public void show() {
                    System.out.println("Hello");
                }
            }.show();
        }
    }
    

    Then the class files generated will be: – Foo.class and Foo$1.class.

    So, if you are using ActionListener as anonymous inner class, then also you would get that $, in your class file name for that anonymous inner class.

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

Sidebar

Related Questions

The following C++ code gives an error while compiling: #include<iostream> using namespace std; class
While compiling the c++ code using android NDK I am getting the following error:
While compiling some code I receive the following: error C2018: unknown character '0x40' I
I'm encountering this error while compiling some old VC++ 6.0 source code. error C2632:
i am trying to read an excel file using java. while compiling the program
While compiling code using vim (not gvim) the output looks fine in the terminal
I am working on VS2010, Crystal Reports. While compiling my code I am getting
I get an error, while compiling my C#-code with Visual Studio 2010 on Windows
While compiling a program in Java I got this big WARNING warning: [unchecked] unchecked
While compiling the following code {\centering {\includegraphics[scale=.5]{splash.eps}} \caption{Splash Screen} \par} \end{figure} Splash screen is

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.