setting Classpath

HI i have gone through Brainbench java certification exam and i faced a question like this.

Which one of the following can not be used in a classpath?

1. A URL

2. A jar File

3. A zip file

4. a class file

5. a network drive

To my knowledge jar, zip and class files can be in classpath.

What about URL and network drive?

regards,

Rajashekhar

[406 byte] By [rajavena] at [2007-11-26 20:13:56]
# 1

> HI i have gone through Brainbench java certification

> exam and i faced a question like this.

>

> Which one of the following can not be used in a

> classpath?

> 1. A URL

> 2. A jar File

> 3. A zip file

> 4. a class file

> 5. a network drive

>

> To my knowledge jar, zip and class files can be in

> classpath.

> What about URL and network drive?

>

> regards,

> Rajashekhar

The question indicates that only one answer is invalid. Didn't the site list the correct answer?

Kaj

kajbja at 2007-7-9 23:20:12 > top of Java-index,Java Essentials,Training...
# 2
A class file is never part of CLASSPATH, it is the directory containing the class file which is part of CLASSPATH.
PMJaina at 2007-7-9 23:20:13 > top of Java-index,Java Essentials,Training...
# 3
Ok then what about the URL and Network Drive?
rajavena at 2007-7-9 23:20:13 > top of Java-index,Java Essentials,Training...
# 4
any reason why you would be unable to use those on a classpath?
jwentinga at 2007-7-9 23:20:13 > top of Java-index,Java Essentials,Training...
# 5
URL should be used in class path because URL actually shows the path to a directory(if we omit last file name in the url). we can use anything as a class path provided they behave as directory or some form of files recognized by Java like .jar. correct me if I am wrong.
tanmoy_rajgurua at 2007-7-9 23:20:13 > top of Java-index,Java Essentials,Training...
# 6
Why not test the choices and see? Come back with your results.
DrLaszloJamfa at 2007-7-9 23:20:13 > top of Java-index,Java Essentials,Training...