neel sri

Greenhorn
+ Follow
since Feb 06, 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 neel sri

I'm planning on taking SCWCD 1.4 hence researching for a good book and
found two:
1.HFS by Bryan Basham, Kathy Sierra, Bert Bates
2.SCWCD Exam Study Kit Second Edition : Java Web Component Developer Certification
by Hanumant Deshmukh, Jignesh Malavia, Matthew Scarpino

I've learnt that first edition of Study Kit by Hanumant was good for SCWCD1.3. Would want to know if Second Edition is good for SCWCD1.4.

Is HFS covering all aspects? Please advice..

Thanks a bunch in advance.
Moderators ,

Please delete the post. I over looked it. Sorry for the inconvenience.

Thanks,
Bert,
I am not able to aceess your Bonus master exam which is provided with the master exam CD.Registered in osborne.onlineexpert.com and selected Java2 certificatoin Guide.

But I dont see any download option in the MASTER EXAM tab. I tried calling tech support its not 24/7

I'm attending SCJP tomorrow, thought I would keep this for last minute mock .

I appreciate, if anyone could provide any help.

Thankyou.


Compiler says : child1 is not abstract and does not override abstract method defmethod() in p.parent.
"defmethod()" defined in parent is default it is not seen in any classes outside the package. For class child1 "defmethod() in parent" does not exist. So why is the compiler complaining here ??

Thankyou!!
Sorry, My bad .. I meant this ..
System.out.println(c.equals(d)); //prints false
System.out.println(d1==d2); //prints true

Ended up writing asking the otherway..


anyways thanks for the reply, I got it now.
Double c = new Double(0.0);
Double d = new Double(-0.0);
System.out.println(c); //prints 0.0
System.out.println(d); // prints -0.0
System.out.println(c.equals(d)); //prints true

double d1 = 0.0 ;
double d2 =-0.0;
System.out.println(d1==d2); //prints flase
Can someone explain this.

Thankyou!!
While equating array reference variables if the dimensions aren�t appropriate then compile time error is not caused but runtime error sets in.

is this true?? can someone give an example?

Thank u!!
I think D is wrong as it says anonymous class "immediate Subclass of Super" meaning it had already been extended from Super class, How can it implement a interface?? It violates the Rule that anonymous class can't extend and implement at the same time.

Is n't that correct?
Steven, thank you!!
Thanks!! Nick..
I did understand why compiler is throwing an error for this
boolean b3 = color2 instanceof Blue;
But my question is why whould it not throw an error
boolean b3 = color2 instanceof iface; ( Assuming that iface is an interface declared in the same file).

For that matter any interface compiles fine in the place of Blue in line "boolean b3 = color2 instanceof Blue;" but not any class other than "Red" and "Color".

boolean b3 = color2 instanceof Collection; also compiles fine!! why??

Hope I'm clear this time.
A question from one of chisholm's mock


That's understandable.. say I change the code by declaring an interface
"interface iface {}" and replacing the line3 with the following
"boolean b3 = color2 instanceof iface;". Output is true,false,false.
Why is compiler not complaining? Does this mean "instanceof" behaves differently for interfaces?

Thanks,
Neel.
Thanks for the ur replies ..
I was thinking the same ..
so can we conclude saying that the enclosing class cann't have direct access to the members of the inner classes?
One of the study material for SCJP says:

"Enclosing class members can access the private variables and methods of its member classes. These private fields and methods can be accessed by other member classes also."

I tried with the following code:

ofcourse it did not work as the inner1var is restricted to the class inner. Which means that statement is wrong. can anyone throw some light on this.

Thanks,
Neel
Preparing for SCJP 1.4

[ February 06, 2005: Message edited by: neel sri ]
[ February 06, 2005: Message edited by: Jim Yingst ]