Ferwed Kondos

Greenhorn
+ Follow
since Sep 27, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ferwed Kondos

Thanks Henry
So the dot in the classpath is to find the class in the current directory I want to run which is UseKit?
K&B chapter 10 - Q 12

And the following sub-directory structure:

test
|--UseKit.class
|
com
|--KitJar.jar

If the current directory is test, and the file pkg/Kit.class is in KitJar.jar, which
command line will produce the output bc ? (Choose all that apply.)
A. java UseKit b c
B. java UseKit a b c
C. java -classpath com UseKit b c
D. java -classpath com:. UseKit b c
E. java -classpath com/KitJar.jar UseKit b c
F. java -classpath com/KitJar.jar UseKit a b c
G. java -classpath com/KitJar.jar:. UseKit b c
H. java -classpath com/KitJar.jar:. UseKit a b c

Answer is H
I dont understand why F is false, why specifying the dot in the classpath is required?
I have the following 2 files in these 2 packages:

Now I want to compile class Child, consider these 2 packages are contained in a directory called "Test" I simply do this in command line:
cd Test
javac pack2\Child.java

My question, shouldn't I be using -classpath option to locate Parent.java during compilation, same when running to locate Parent.class.
16 years ago
Hello
As a beginner with Oracle Database, what good books should I refer to, and or websites.

Thanks
16 years ago
Inner classes cannot have static members of any kind? true or false