aspose file tools*
The moose likes Beginning Java and the fly likes What is a class file with $ symbol in the name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is a class file with $ symbol in the name" Watch "What is a class file with $ symbol in the name" New topic
Author

What is a class file with $ symbol in the name

Ravi Pydi
Greenhorn

Joined: Sep 01, 2002
Posts: 25
My java program has to import certain classes in a JAR file. I have imported the jar file. I was able to refer to the methods of all the classes in the JAR file except the files which have "$" symbol in their name (Ex: xml$BOAppInfo.class). What are these class files and how can I refer to the methods in these class files.
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
inner classes


java amateur
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11422
    
  16

if you define a class INSIDE another class, you get what's called, appropriatly, an inner class. These are what you are seeing with the dollar sign. you may want to check out the campfire article on Inner Classes


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
 
subject: What is a class file with $ symbol in the name