This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes where to see the source code for java.lang.String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "where to see the source code for java.lang.String" Watch "where to see the source code for java.lang.String" New topic
Author

where to see the source code for java.lang.String

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

where to see the source code for java.lang.String

thanks


Sudheer
SCWCD, SCJP 5
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 41106
    
  29
Somewhere in your Java installation folder you will find a file called src.zip. Unzip that, then navigate to its "java" folder, then its "lang" folder. You will notice the folder structure follows the package name structure.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: where to see the source code for java.lang.String