Solved

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

Posted on 2001-08-06
2
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

738 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