File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is a class file with $ symbol in the name

 
Ravi Pydi
Greenhorn
Posts: 25
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
inner classes
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12017
24
Chrome Java Linux
  • 0
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic