Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!

Paul Zill

+ Follow
since Jun 12, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Paul Zill

try typing "set path" from the command line.
does the java bin directory correctly appear?
if it does make sure you don't have a typo.
double check your autoexec.bat and try restarting your machine again.
BTW are you running on win95/98/me?
16 years ago
vouchers are good for a year.
And I think you can sign up for a test the day before (not sure if you can do it on the same day).
and I think it's 2 business days before if you want to cancel.
Ahh... nice catch.
Is that a typo or does the actual question have an int "Value" instead of "value".
Is there a particular part of the question you find confusing?
Have you tried running it yourself to reverse engineer the question?
16 years ago
I think that's a good amount of time if you spen at least 3 hours a day.
And for a book:
Sun Certified Programmer & Developer for Java 2 Study Guide (Exam 310-035 & 310-027)
Kathy Sierra and Bert Bates
and use the link here to give javaranch a kickback

Originally posted by Jaunty John:
These will always resolve false if NOT true

if what not true
boolean x = true;
boolean y = false;
boolean z = true;
than the first example would be true.
and second false.
boolean x = false;
boolean y = false;
boolean z = true;
the the first is false and the second is true.
16 years ago

not sure what the question is.
did you forget the values for x, y, & z?
16 years ago
Marcus Green's 1.4 exams
and Dan's exams
are also very good.

First off we I'm assuming you understand the order of the "System.out"s, if not just let us know.
So now we have:
1)at line 23 we create a new ValHold object vh which has vh.i=10
at line 24 we use our new ValHold object vh created at line 23 and set v=vh
so now v.i=10
2)in method another() i was passed in with value of 99
but we immediately set i=0 at line 21
3)at line 16 we pass v into method another() and v.i=30 at this point
when we pass objects as parameters we are actually passing a copy of the reference
so at line 22 when v.i=20 that will also apply to the v object in the method amethod()
at line 24 we set method anonther()'s v to point to a diferent object, this does does not affect method amethod()'s v though
so at line 17 v.i=20
Hope that makes sense.

Originally posted by Anuradha Jayanti:
static classes cannot be instansiated.
If you want to create a class but you dont want it to be instantiated, then declare the class's constructor as private.
Do both the cases create the same effect? or are they different?

Hmm.... how to put this...
Outer classes cannot have a static modifier, only nested classes can be static and static nested classes can be instantiated using:

A class with pivate constructors can also be instantiated. Remember private only means class only access. So if the class has a methoda that calls a private constructor, and that method is visble to other classes, another class can create an instacne of that class with a private constructor by calling that visible method.
ListIterator is an interface that extends Iterator, both interfaces deal with interating over elements in a collection.
While List is an interface that extends Collection, so List is a more specific type of Collection.
16 years ago
Dang! You just too cool for school!
So how many days for the scwcd . . . I'll say you can do it in 5 days
Congrats on your excellent score and super absorbing powers.
16 years ago
by remotely what do you mean?
is the only way to access the file via FTP?
16 years ago