Vidhya Praba

Greenhorn
+ Follow
since Apr 13, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vidhya Praba

Hi,

For SCJP 1.4, I found these 2 mock exams very useful...Marcus Green Exam Simulator
http://www.danchisholm.net/july21/index.html

Dan Chisholm's site has single topic exams as well, which is very useful to revise by objectives. Marcus Green's site has an excellent collection for 1.4.

I would also suggest to check out this link for most of those topics which are usually confusing...
SCJP Tipline

All the Best!

-Vidhya.
YES! Finally....

And I had no chance of passing if not for Java ranch. So a big THANKS to all the ranchers. Though I haven't contributed much, I visited this forum atleast 5 times a day and checked out nearly all the old threads!!!

As I couldn't afford to buy a certification study guide, I prepared fully with available online materials only!(ofcourse, I have got about 3 books on Java and I've some 2 years experience.) Without Marcus green and Dan Chisholm, I would have been lost though.

As for my preparation, the only mistake I did was I mixed up with the mock exams for studying instead of with testing myself. Oh well, never mind....anyone starting preparations now, save the marcus green exam for the last minute and instead use dan chisholm's single topic exams for studying. They all come with good explanations.

I know I could have done better, but given my preparations, I did expect around 80% and so no surprise there. But the surprise was I scored 100% in Threads!!! it was the one subject I was not really sure about and spent so much time on, so it feels really good.(and the first 10 questions on the exam were from threads! very encouraging!!!) Shame though on Flow control, assertions & exception handling, where I scored only 67% and I haven't got a clue which questions I did wrong, so that makes it worse!

It was a difficult decision going for 1.4 instead of 5, but for me it was only a stepping stone for SCWCD & I wanted to spend more time on that than scjp. Ofcourse i will study the new features anyway, but just not taking the exam now. I've already started on the HFSJ last week, planning to do a small project & probably take the exam in 6 months time, perhaps? don't know...but right now, Terry Pratchett is been calling to me for a while now & so, Discworld, here I come!!!

Thanks once again for all the ranchers...

-Vidhya.
(ps. don't mind my lengthy rambling...i'm still too excited!!!)
[ May 11, 2006: Message edited by: PV Vidhya ]
18 years ago
Hi,

I'm appearing for SCJP 1.4 next week(hopefully!) Right now I've a very tight schedule to study a new version of Java. I will take the upgrade exam later.

Vidhya.
Hi,

Check out Corey's blog reg. this in the following link...

http://radio.javaranch.com/corey/2004/04/19/1082390724000.html

It quotes the relevant section of the JLS as well. I think this answers your question...

Vidhya.

Java Chooses the most specific methods based on the inheritance hierarchy!!! In your example which has null as a parameter it will call the method with Object as a parameter rather than String because Object class comes top in the inheritance hierarchy compared to Strings...i.e. class String extends Object...



WRONG! Like John mentioned, here the method with String parameter is more specific than the one with Object parameter.

In general terms, if the parameters of Method A are valid in Method B, but not vice versa, Method B is said to be "more specific" than Method A.



No, here Method A is more specific, which in this example is test(String).

JLS explains the most specific method as this:

"One method declaration is more specific than another if any invocation handled by the first method could be passed on to the other one without a compile-time type error."

Thus, here you could call the test(Object) within test(String), but not vice versa, hence test(String) is more specific.

Hope I explained it properly...

Vidhya.
Hi,

Please refer the following link for forward referencing...

http://radio.javaranch.com/corey/2004/05/13/1084483439000.html

In summary, you can use x on the left hand side of the expression, but not on the right hand side, like x++, before it is declared.

Hope this helps...
Hi John,

U are right! problem is not in the program, but in the version!!!its executing fine in 1.4.2! stupid, stupid vidhya..........
Sorry, question# 4 in the topic 5. Overloading & Object orientation in the above link...
Mine is still 1.3!!! so, i'm downloading 1.4.2 to check it...But the similar question can be found in the overloading & overriding objectives in the following mock exam link..

http://www.geocities.com/sahirshah/applets/mocktest.html
Hi All,

Thanks for this wonderful forum...Its been so helpful to me, I have finally got the nerve to join it!!!

I found this program in a mock exam. Could someone please help me in understanding this logic...



I'm getting compiler error saying amethod is ambiguous in Parent & Child class. But if I swap the method types, ie., long in Parent & int in Child, then it executes fine & amethod in Child gets called. Why is this happening?