V
varun chadha
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;
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;