Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Java keep standard library classes? [closed]

Tags:

java

Where does Java keep standard library classes like java.util.* on the hard drive under Windows OS?

like image 924
Roman Avatar asked Jan 21 '26 18:01

Roman


1 Answers

When you say

import java.util.Date;

you are not reading a file. You are telling the compiler to treat the type reference "Date" as if it was "java.util.Date".

When the compiler later resolves java.util.date it will find it in the JDK's jre/lib/rt.jar file.

http://www.velocityreviews.com/forums/t125842-re-newbie-q-where-is-java-util.html

like image 188
Gary Klasen Avatar answered Jan 23 '26 07:01

Gary Klasen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!