• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is a class file with $ symbol in the name  RSS feed

 
Ravi Pydi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
inner classes
 
fred rosenberger
lowercase baba
Bartender
Posts: 12558
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!