Faqeer Khudaka

Ranch Hand
+ Follow
since Jan 24, 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 Faqeer Khudaka

Thanks John, that was helpful.

FK
14 years ago
Hi all,

I just bought a laptop with 100GB hard disk and running Windows XP Home. Now I am trying to make some partitions here using Computer Management tools but it doesnt allow me to do so. I cant format my hard disk cause that would be a long process. \
Any suggestions as to how to make partitions while using XP. I tried partition magic 8.0 trial but dosnt allow me to make partitions.
Is there any free 3rd party software for partitioning that is also reliable?

Thanks
FK
14 years ago
Hi all,

Just wanted to share the good news with ranchers. I passed the SCJP 1.4.

I would like to share my experience with folks who are planning to give the exam:

I studied Sybex's Complete Java 2 Certificaiton and did Marcus Green's mock exams(complete 420 questions). I think Marcus's mock exam questions are VERY(repeat VERY) similar to real exam questions.
I did the 2 minute drills from K&B book(couldnt read it completely cause I got the book 2 days before the exam but its definitely worth reading).

Lastly, I was actively particiapting in the JavaRanch forum and found answers to the MANY questions I had.

In the end I want to thank everone here @ the Ranch for thier help and especially the moderators for keeping the forum nice and "clean".


Regards
14 years ago
Hi all,

I am not sure if this is the right place to ask this question but I am going to try.

I have some knowledge of HTML but I want to learn JavaScript.
I would appreciate if somebody can direct me to some free resources(including books etc) available on the net.

Regards
Hello everyone,

Just want to clear my concept about the shift operators:

If the right hand operand in a shift statement is more than or equal to 32, then to determine the shift distance we mod that operand by 32.e.g.

In all these situations we will mod the right hand operand by 32 to get the shift distance. Am I right??

2. How do we know the scope of an object.

3. The ONLY difference between local and anonymous classes is that the former has a name whereas the latter has no name. Is this statement correct?

Thanks
Thanks Keith and Satou.

The confusion I have is about the assignment and the subsequent print statement.

According to my understanding, 1. i is assigned to i(i is 0 at this moment) 2. i is incremented(i becomes 1). 3. i is printed and this i is the SAME which we just incremented , right??

The 2nd program I had in my original post goes like this:

Hi all,

The following code gives the output 0 whereas I think it should be 1 cause after i is assigned to itself(i = i), it is also incremented , so it should print 1.
Am I missing something here?



---------------------------------------------------------------

2nd Question:
Can someone explain the following code and its output:




Thanks for your time.
Thanks Keith for your reply.

Though i realize the difference in the return types of the 2 methods but doesnt overriding mean that name, return type, argument type and number of parameters passed should be same in both the methods and in this case the return type is different, so that would mean lilly() in the child class is a brand new method.
Am I correct?

Does anyone the answer to the 3rd question?
Hi all,

For the following code:


First question:
I thought it would output zac but it gives compile time error cause of method lilly() that isnt overriding lilly() in Base properly. Isnt lilly() suppopsed to be considered a new method instead of overriding the one in the Base class?

second question(not related to this though):
Whats the difference between a local and an anonymous class?

third question:
In the real exam do they tell you the NUMBER of correct answers to choose for a question which has mulitiple answers?

Got some more things to ask but I guess this is enough for now

Cheers!!!
Sorry for the double posts. Guess I pressed the button twice.
Regards
Hi all,

Had a question about the following code:


Prints " seal, seal, 3 " when compiled and run. I was wondering how is this code getting compiled cause try block in aboat method is returning 1 and then in the finally block, there is return value of 3. Isnt this wrong cause a method can return only one value and even if it can return 2 values, why 1 is not printed??

Regards
Hi all,

Had a question about the following code:


Prints " seal, seal, 3 " when compiled and run. I was wondering how is this code getting compiled cause try block in aboat method is returning 1 and then in the finally block, there is return value of 3. Isnt this wrong cause a method can return only one value and even if it can return 2 values, why 1 is not printed??

Regards
I have got a bit confused here. Need some help.

For this code


Howz the answer coming out to 127. Can somebody explain in detail showing the full calculation, please.

Thanks
OOps!!

Sorry, correct answers are 1,3,4. I had problems with option 2.

Regards
Hi all,

This question might be very trivial but after doing so mock exams since this morning, now I cant figure out why the output is like this:


correcr answers are 1,2,4. Ok the issue is with option 2 cause the rule states, in binary operations if one of the operand is int, the other operand is also converted implicitly to int. But this is not happening here.

Am I missing something?
Thanks