This week's book giveaway is in the Agile forum.
We're giving away four copies of Fixing your Scrum and have Ryan Ripley & Todd Miller on-line!
See this thread for details.
Win a copy of Fixing your Scrum this week in the Agile forum!

Swapnil Trivedi

Ranch Hand
+ Follow
since Jun 06, 2006
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 Swapnil Trivedi

Congrats Prathibha!!! really u did a great job!!

And thanks a ton for sharing the preparation material....

Keep it up!!!


Regards
Swapnil
15 years ago
Hi Friends:
I just wanted to share that today I have got my Certificate and logo(it's in the form of a card) from the Sun Microsystems. I cleared the certification on 6th July. It's so fast
Could somebody tell me that how shall I use my logo. Am I suppose to carry it with me in the interviews or should I put it in safe at home.
I am not getting it



Thanks,
Regards
Swapnil
[ July 18, 2006: Message edited by: Swapnil Trivedi ]
15 years ago

Out-put is false,true,true

And the explanation for the answer is
LinkedHashMap does not implement the Collection interface. LinkedHashMap extends HashMap and implements Map, Cloneable and Serializable.

But as per my knowledge LinkedHashMap does not extend HashMap

Please correct me if i'm wrong..

Thank u!
GMP[/qb]<hr></blockquote>

Hi Ganesh:
The output is absolutely correct. Here,
(i) m instanceof Collection --> Now since m is a type of Map and Maps do not implement Collection interface.Hence, m is not an instanceof Collection.
So, It's FALSE

(ii) m instanceof Map----> As I said earlier m is a type of Map hence m is a instanceof Map. It's TRUE

(iii) m instanceof HashMap---> Here since the runtime type of m is LinkedHashMap,So m is basically a type of LinkedHashMap which extends HashMap. Hence, m is an instanceof HashMap.It's TRUE.

Hence, the output " false,true,true"



Regards
Swapnil
[ July 11, 2006: Message edited by: Swapnil Trivedi ]
Hi Amit:
Thanks!! this is a great news...I am planning to take SCWCD so now i can purchase it's voucher before 15 August.


Regards
Swapnil
Hi Pablo:
Many Congratulations on clearing SCWCD!! Good Job!!
Yesterday I cleared my SCJP 5.0 exam, and now I am planning to take SCWCD exam. Can you please guide me that what and how should I prepare? Thanks

Regards
Swapnil

[ July 07, 2006: Message edited by: Swapnil Trivedi ]
[ July 07, 2006: Message edited by: Swapnil Trivedi ]
15 years ago
Hi:
I guess the reason for compilation error in Static context is that, The static methods don't have "this" reference. Since the static members of a class are not associated with any object instead they are of class only. hence, they can't have "this" reference.

Whereas when u call it in a non static method, u can easily pass "this" to the threads constuctor. As that methods must have "this" reference.

About the threads Constructor, I can't say much until I see the code...If "this" is refering to a runnable target then u can surely pass it in threads constructor...



Regards
swapnil
Thanks a ton guys!!!
15 years ago

Originally posted by Tiffny Yang:
Nice job , Swapnil !

What do you think the level of difficults compared EnthuWare with real exam?

Did you do all the quize and customized practise in the the whizlab5? If you do, do you think it's helpful?

Thanks.



Hi Tiffny:
The difficulty level of Enthuware is good. Actually apart from difficulty I would say it gives u a tremendous scope to practice questions.U are able to get the things on ur tips.

I gave 8 out of 10 practice tests in Enthuware,6 tests from Whizlabs and 2 tests from K&B. Main exam is a bit easy as comapred to it, Whizlabs and K&B mocks are really tough.

I feel if one is having K&B book(it's really a Bible for SCJP programmers), Whizlabs simulator and Enthuware mock exams then no one can stop him from getting 70-80% easily..It's a great experience and achievement for me as I am a novice in programming and I am trying hard for getting into this field.

Best Regards
Swapnil

[ July 06, 2006: Message edited by: Swapnil Trivedi ]
[ July 06, 2006: Message edited by: Swapnil Trivedi ]
15 years ago
Did you get any replies about the usefulness of SCWCD?
Congratulations!! 86% is a great score.
15 years ago
Hi Guys!!!
I cleared the SCJP 1.5 today with 76%.It's all due to my god blessings and the help given by Java Ranchers.

Until I had Enthuware,I was not much confident. Enthuware gave me a lot of confidence and a great database of Questions to practice. I am really thankfull to Paul.

Also, Whizlabs and K&B mocks are wonderfull. You need not to worry if you are scoring 50-60% in that mocks. The questions in main exam are very much similar to them.

I have got 100% in Collection/Generics and Flow Control...The questions were not that much hard as in mock exams. Thanks to all Java Ranchers.

Regards
Swapnil
15 years ago
But I am not getting how this is the correct answer in K&B mock??


This Question is from K&B master exam 2. In that, this answer is correct. They have asked that the class that implements this interface need to override which of the following methods.....(there were 4 methods in the option)
And I didn't choose this main(String[] wow) method option due to the same reason...But my answer was wrong. According to correct answer given, they are considering this main(String[] wow) method as correct option.


Regards
Swapnil
And Thanks for accepting my apologies Finner . I was feeling very bad for writing such a rubbbish code......

[ July 05, 2006: Message edited by: Swapnil Trivedi ]

[ July 05, 2006: Message edited by: Swapnil Trivedi ]
[ July 05, 2006: Message edited by: Swapnil Trivedi ]
I am really very sorry for my earlier post I wonder how I wrote that code Now I corrected it...it's like this:


Apologies !!!
Swapnil

[ July 05, 2006: Message edited by: Swapnil Trivedi ]

[ July 05, 2006: Message edited by: Swapnil Trivedi ]
[ July 05, 2006: Message edited by: Swapnil Trivedi ]


Hi Friends:
Is this source code correct... I think it should give error saying that "main is already defined" and it is giving this error when I ran it.But I am not getting how this is the correct answer in K&B mock??


Regards
Swapnil
"I apologize for writing the incorrect code and bothering u all...I have corrected this now"

[ July 05, 2006: Message edited by: Swapnil Trivedi ]
[ July 05, 2006: Message edited by: Swapnil Trivedi ]
Thanks Naseem...


Regards
Swapnil