Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Terry Rickson

Greenhorn
+ Follow
since May 05, 2005
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 Terry Rickson

I would go for D

final int MAX_STUDENTS = 1000;

I reckon it depends on what you plan on doing - if you want to go for the Developer exam after then 1.4 is still a Qualification and you can progress on to what ever exam you choose after but if you want to be a programmer then i recommend the 5.0 exam as it show's you have up to date knowledge of the java language.
Thanks guys!

Do you think as the technology improves and becomes ever popular more and more vancancies will appear making more people take the exam?
Hi all,

I would of thought that the SCMAD qualification would be one of the top job qualifications you can get since mobile phones and stuff are really getting hi-tech and now a booming industry. But how come not many people go on to this qualification once they have pass the SCJP exam.

whats so good about the other java technologies?
what would you people reckon is best to go on to?

I want to go on and passed the SCMAD exam because of how much mobile technology is going to last and improve.
Thanks Vidya,

I knew that anyway but was'nt sure why method local inner classes could be marked abstract.

Thanks again!
the above question was mean't to say how would i be able to use the inner class?

code example would be great
Hi,

Take a look at this code.



I know the code won't compile because the method local inner class has been marked abstract but how would i be able to the inner class. Please somebody help!

Thanks in advance
Hi,

If you look at this code.

Button b = new Button();

It creates a button object but the variable b is the instance variable of the Button object.

Hope this helps!
16 years ago
Hi,

Because x = x++; is still the same.

Your saying x = x++; it's not being incremented x is just = x.

In x++ the ++ (postfix is being ignored) you need to use ++x; if you want to increment it.

Hope this made sense!
Thanks alot it makes sense now.
Can somebody help me out and tell me why

int x = 0xef; // hex number

how come x = 239

i thought e = 14 and f = 15 how does it add up to 239

Thanks in advance
Hi,

If you tried using that code in a method it will cause a compiler error because it must be initialised before being used.

If you used it outside the method it automatically gets assigned null (the default value for a Object.

Hope this helps
Hussein Zeytoun

Yeah K&B book has everything in there you need to know for the exam! I have been using it for the last couple of weeks and have learned thing from it that i would'nt i thought i needed to for the exam.

K&B book is great
To reference the outer method you need to create an instance of the outer class in the inner class and call it from there.

e.g.
[code]
class Outer {
public void method() {
System.out.println("Outer method..");
}

class Inner {
Inner() {
this.method(); // calls the inner class method
Outer o = new Outer(); // create instance of outer from inner
o.method(); // calls the Outer method from inner class
public void method() { // Overridden method
System.out.println("Inner method...");
}
}
}

public static void main(String[] args) {
Outer.Inner test = new Outer().new Inner();
}
}
[\code]
Hi,

To reference the overridden method of the inner class you use this.methodName(); and to call the outer class method from the inner class use OuterClassName.methodName();

Hope this helps