Solved

dollar sign in .class names (and lots of em)?

Posted on 2001-08-06
2
237 Views
Last Modified: 2010-03-31
Hi everyone,

I just had a simple question for a java person.  I recently made a graphical java application named prog.java.  after i compile it, wham! 15 classes appear, named prog.class, prog$1.class, ..., prog$14.class.  

What's that all about?  If anyone has seen a good source on the net explaining this, i would love to see a link.  

Thanks so much,
Jennifer.

Please comment your comments. thanks!
0
Comment
Question by:jenniferx
2 Comments
 
LVL 1

Accepted Solution

by:
dviji earned 35 total points
ID: 6357044
All the $x.class are inner classes.
i.e

if you have the class like

public class A
{
 //..
 class b
 {
  //..
 }
}
If you compile the class you will get A.class & A$b.class. It means class b is an inner class for class A.

In your GUI program you may be used Listener inner classes.

For more detail goto http://java.sun.com/products/jdk/1.1/docs/guide/innerclasses/.

...dviji
0
 

Author Comment

by:jenniferx
ID: 6357640
Thank you dviji,

that helped a lot. you were right, i have many listeners.

Jennifer.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question