This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes what is the meaning of classpath resource related to java io Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is the meaning of classpath resource related to java io" Watch "what is the meaning of classpath resource related to java io" New topic
Author

what is the meaning of classpath resource related to java io

ganesh pol
Ranch Hand

Joined: Apr 29, 2005
Posts: 151
what is the meaning of classpath resource related to java i/o
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24193
    
  34

A "classpath resource" is a resource (a file) located somewhere on your classpath. You can read such a resource using the Class.getResource() method (and its relatives) without knowing the exact path.


[Jess in Action][AskingGoodQuestions]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is the meaning of classpath resource related to java io
 
jQuery in Action, 3rd edition