Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why *$1 in *.class names?

Status
Not open for further replies.

ResetGomb

Programmer
Aug 31, 2000
6
HU
I am beginner in Java. When I compile "progi.java" I get "progi.class" and "progi$1.class". I don't understand why. Can onybody help me?

Thank you!
 
That indicates that you have an internal class called 1. Java handles internal classes by prepending the "main" classes name with a $ to the inner classes name. There is nothing to worry about, this is normal.


Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top