import statement



when we use import statement such as:
import java.util.*
or any such, we are referring to the java/util/*.class classes. but
where is this package located in my jdk directory. Also i dont need to
specify the CLASSPATH if i directly compile my source file on
commandprompt as:
c:\{mydirectoryname}> javac Hello.java
so how is java.util.* accessed directly because as far as i know this
is not the absolute path?
one more thing-
import statement works non-recursively. i.e we have to write two
seperate statements:
import javax.servlet.*;
import javax.servlet.http.*;

so for following directory structure:
javacode/
Hello.class
otherclasses/
Welcome.class

is this statement wrong in Hello.java:-
import Welcome.class;
.



Relevant Pages

  • import statement
    ... we are referring to the java/util/*.class classes. ... is not the absolute path? ... so for following directory structure: ...
    (comp.lang.java.programmer)
  • Re: Trying to Delete Directories -- Access Denied
    ... but no luck. ... >> Pasted below is the directory structure I'm referring to, ...
    (microsoft.public.win2000.general)