Roopesh Gulecha

Ranch Hand
+ Follow
since Aug 09, 2005
Merit badge: grant badges
For More
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 Roopesh Gulecha

Congrats Liping..

18 years ago
2 K&B Exams are on the cd with the book and the 3rd one can be downloaded from the O-reilly website - the url is in the book...
As far as the Whizlab tests - yes you have to buy it unless you have a friend who can share it with you..

18 years ago
hi Santana,
Most of my scores in the mocks were not very high..
1. Voodoo Mocks : in the range of 56% - 73%
2. JQPlus : 68% - 80% (Only did about 5 mocks)
3. Whizlabs : 74% - 85% (only 5 tests)
4. Dans : 1st time 50% - 70%
2nd time 60% - 85% (sad, even after 2nd time)
5. Marcus : 97% and 79% (could do only 2 tests, as I ran out of time)
6. K&B : 94%, 87% and 97% (these were easy)
7. Other mocks : mostly around 65 to 80%..

Hope this helps..but compile, compile and compile...

18 years ago
That is amazing...Congragulations..
I wonder what a nurse is doing getting java certified (just kidding)..

18 years ago
Dear Ranchers,
I cleared the exam today and happy with the score, though I thought the test deserved to score 100% - it was easy, but I could not say that if not for Javaranch (this is heaven for Java aspirants - no doubts), K&B and Khalid book (though I feel K&B is definitely all you need for the exam) and the active ranchers who respond to questions - that helps a lot. Thanks a lot. I Got 1 wrong each in Threads, GC and Assertions/Exceptions.

I am not Java expert, infact before a month I knew very little basics. SO I will give my input from that perspective and may not help the Java professional. The exam is not tough provided you do a lot of mocks - that is the bottom line. K&B book is great and that is all you need but your score will not depend on how well you know from the book but simply from how many mocks you can solve (not necessarily correctly but from how many you can learn from).

What I think are a few very important things I did:
1. Read all the inputs from all the people who score more than 90% in the last year and half (I wanted to score more than 90% so I didn;t read inputs from people who scores less than that) and formed my strategy based on that.
2. Someone had mentioned that the compiler is the best teacher, and I totally agree - infact I tried almost all the code I came across using Eclipse (which is great too). Best way to understand.
3. As I read and gave mocks, I formed my own notes of all the reasons why my answers were wrong and I got a lot of answers wrong in the mocks - scoring mostly between 50 to 75% most of the times (few Dan's tests even less than 50% the first time)
Hope this helps somebody as I was helped by the others. Finally here is how I prepared
1. K&B book + all self tests in it + Rules roundup
2. Khalid book + Dan's study guide 2 for chapter wise questions
3. Many of the mocks freely available
4. Few of the JQPlus and Whizlabs Mocks too.
5. K&B book again and Dan's comprehensive mocks
6. 2 of Marcus's and all 3 K&B Exams.
and then gave the test. But easily more than 2100 Questions in total.

18 years ago
To all who have passed the scjp exam, can you tell me how long can I delay starting the exam after I enter the room..I mean can I take 10 minutes and write down all those points that may be hard to remember and create a reference for myself before I start the exam clock ? Is that an option?
I couldn;t find this exact information and so will appreciate it from anyone.

Typo : I meant doesn't even get declared...
But the point here is that if Case 1 is not executed, then the variabel x doesn't even get executed. But the compiler points to the variable not being initialized rather than that the variable does not exist. So Sandeep may have a point and there may be more to this OR else the error message may be intended for both initialization and declaration. Not sure??
But ofcourse if the declaration is made final, it flags no error.

Congrats Satya..
I know how you would be feeling...waiting to be there (in a few more days I will be there too...)

18 years ago
This thread has nothing to do with SCJP in particular. I have always wondered that how do you validate the replies that other users post, especially when none of the bartenders or sherrifs (official people) reply to the posts. Becasue honestly I have myself replied to a few posts inaccurately due to my limited knowledge and that can confuse the newcomer/newbee. Ofcourse one idea is to try the codes in a compiler, but any inputs to this is welcome.

18 years ago
In the example g doesn't require a cast because what is assigned to it is
1. compile time constant integer (value 13)..(no variables involved), and
2. the constant fits in the type byte.
So the compiler is happy...

whereas variable h is assigned values of another variable(s), which is not considered compile time constant (unless the variable is a final constant) the compiler it means that the value of the variable may change while the program is running, so it flags an error.

Hope this helps.

Usually the vouchers are valid for a year from the date of purchase, so I don;t know how the NIIT voucher is valid only until 2005 end.
If I were you the first thing I would decide is that can I appear for the exam before 2005 ends, and if I can I will go for the Rs. 5900 voucher. Man that is only $134..$16 discount...but make sure it is what you want!!

Actually for floating point numbers in Java, -0.0 and 0.0 are different.
Math.min(-0.0,0.0) outputs -0.0, but
-0.0 == 0.0 is true too..So it is a little wierd, but that is how it is.
The floating point numbers (double and float) are in this order
NEGATIVE_INFINITY --> negative integers/fractions --> -0.0 --> 0.0 --> positive integers/fractions --> POSITIVE_INFINITY
This is what I know.

Thanks Corey and Sandeep. It really helped.

I have a doubt regarding this piece of code from JQ+ mocks and hope somebody can suggest something.

When compiled, it prints B and also throws an exception.
But my question is that shouldn't the line 2 flag compile error, since it is unreachable code (Line 1 throws an exception).
This has made it a little confusing. How do you determine when the code is unreachable ?