Saturday 16 March 2013

What is the difference between Classpath and Import?

What is the difference between Classpath and Import? 
Classpath: Class path is a system variable. It is a collection of files in the directories.Normally classpath will be used by Java interpreter to exucute the class files(.class).

Import :Import is a keyword. It is used to getting the required files into the program without writing the hard code.
eg. import java.io.*;


Blog Author: Vijay Kumar

Go to: Coding Problem Solutions

No comments: