What is the difference between Classpath and Import

Showing Answers 1 - 5 of 5 Answers

Anushri

  • Aug 23rd, 2005
 

Classpath is where u need to specify the path of oracle, ant etx. from where these are picked.  
 
Import is used import the files in ur source code

  Was this answer useful?  Yes

shanthini

  • Nov 5th, 2005
 

Import is used to import .ie bring ur java packages to ur source(like io, sql and net packages)

The classpath is one where, u need specify the path of the jvm to ur class file

  Was this answer useful?  Yes

Novy

  • Mar 6th, 2007
 

The full path to the classes directory, <path_two>classes, is called the class path, and is set with the CLASSPATH system variable. Both the compiler and the JVM construct the path to your .class files by adding the package name to the class path. For example, if <path_two>classes is your class path, and the package name is

com.example.graphics, then the compiler and JVM look for .class files in

<path_two>classescomexamplegraphics.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions