my dog learned polymorphism
The moose likes Beginning Java and the fly likes java lang Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java lang" Watch "java lang" New topic

java lang

palkiwala patil

Joined: Jan 28, 2004
Posts: 3
where in the java tool kit we find java lang class file
Vicken Karaoghlanian
Ranch Hand

Joined: Jul 21, 2003
Posts: 522
java.lang is not a class file, it is a package. All the classes in this package are implicitly imported by the compiler to every source file you write.
You can search the java api doc here for more information about the java.lang package.

- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!
palkiwala patil

Joined: Jan 28, 2004
Posts: 3
i ment when the tools jar file is unpacked where do we find the classes of java.lang package String.class
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Typically, the J2SE classes are all jarred up in a file named "rt.jar".

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
If you want to look at the source, unjarring/unzipping the rt.jar file won't do you much good, since it is full of *.class files.

I suggest that you unjar/unzip the JAVA_HOME\ into the JAVA_HOME directory. Then you will be able to find the classes inside the java\lang\ subdir.

Otherwise, if you want to have local javadoc documentation, you need to download that separately from

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: java lang
It's not a secret anymore!