import statement
- From: varun chadha <varun.consit@xxxxxxxxx>
- Date: Tue, 29 Jul 2008 12:27:40 -0700 (PDT)
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;
.
- Prev by Date: Tomcat 6: Having the JSP read a file from webapp directory
- Next by Date: Re: Tomcat 6: Having the JSP read a file from webapp directory
- Previous by thread: Tomcat 6: Having the JSP read a file from webapp directory
- Next by thread: Findbugs and locks?
- Index(es):
Relevant Pages
|