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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:24:08+00:00 2026-05-31T05:24:08+00:00

I would like to know why I got like 30 ClassFiles in the bin

  • 0

I would like to know why I got like 30 ClassFiles in the “bin” folder for my Program.java program.

They are named as followed:

Testworks$1.class
Testworks$2.class
Testworks$3.class
Testworks$4.class

...

and there is one Testworks.class

When I generate my Program.jar file all 30 Testworks$X.class are copied inside.

Do I really need them and how can I exclude them?

  • 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-05-31T05:24:09+00:00Added an answer on May 31, 2026 at 5:24 am

    These classes are anonymous inner classes. If you have used GUI programming,you might have noticed them. When you create listeners for events, you might do something like:-

    Button okBtn = new Button("Ok");
    okBtn.addActionListener(new ActionListener(){//this is an anonymous inner class
    
      public void actionPerformed(ActionEvent ae){
       //your code here
      }
      ...
      ...
    
    });
    

    This inner class has no explicit name, hence the compiler names it using the convention OuterClass$x.class. x is replaced by the number of inner class (for eg, 1, 2..etc)

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

Sidebar

Related Questions

I would like to know how the Cocoa Framework got its name. I know
I've got an executable file, and I would like to know which version(s) of
I've got a running process which is using 'Test.dll'. I would like to know
I would like to know if there is a way I can select the
I've got a 4-states button. I would like to know how to delay the
i would like to know if it's possible to do something like this: class
I got a little problem with datamapper, and I'd like to know if there
I'm stuck on the following problem and would like to know if you got
I would like to know how to solve a problem I've got. I have
I've got some big C programs, and I would like to know when I'm

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.