Whare are the Classes?

Where are the Classes situated which we import while writing a JAVA code. Import Java.MathMy question is where in JDK folder the class MATH is situated?
[173 byte] By [rd_innovativesa] at [2007-10-3 2:27:20]
# 1
jre\lib\rt.jar
PhHeina at 2007-7-14 19:26:24 > top of Java-index,Java Essentials,New To Java...
# 2
class Math is in java.lang
Redxxiva at 2007-7-14 19:26:24 > top of Java-index,Java Essentials,New To Java...
# 3

> Import Java.Math

>

Also, if this is truely what you typed, it will never work. Import is written with a small i (import).

Also, Math is in java.lang, so you do not need to import it at all.

As far as finding out where a class is, there is this wonderful thing called API Documentation. Use it.

masijade.a at 2007-7-14 19:26:24 > top of Java-index,Java Essentials,New To Java...
# 4
The class actually resides in the lang package. for more details just go through the JAVAdoc.It contains as much information as anything.
Raman_The_Indiana at 2007-7-14 19:26:24 > top of Java-index,Java Essentials,New To Java...
# 5
> The class actually resides in the lang package. for> more details just go through the JAVAdoc.It contains> as much information as anything.Nice summary of replies 2 and 3. Don't you think the OP would have managed to combine those?
PhHeina at 2007-7-14 19:26:24 > top of Java-index,Java Essentials,New To Java...
# 6
C:\jdk1.5.0_07\jre\lib that is in jdk\jre\lib\rt.jaruse java decomplier to see Math.class http://members.fortunecity.com/neshkov/dj.htmlGive me duke dollarsMessage was edited by: Taton
Tatona at 2007-7-14 19:26:24 > top of Java-index,Java Essentials,New To Java...
# 7

> C:\jdk1.5.0_07\jre\lib

> that is in jdk\jre\lib\rt.jar

> use java decomplier to see Math.class

> http://members.fortunecity.com/neshkov/dj.html

> Give me duke dollars

Maybe you would have deserved some duke dollars if you had suggested that the OP simply looks at Math's source code - why decompile the class? If he had wanted to know it, that is.

CeciNEstPasUnProgrammeura at 2007-7-14 19:26:24 > top of Java-index,Java Essentials,New To Java...
# 8
Philip.... Thanks for the answer ....
itsrudraa at 2007-7-14 19:26:24 > top of Java-index,Java Essentials,New To Java...