Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-08-06
2
Medium Priority
?
244 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 140 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

885 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