Ram Sank,

Greenhorn
+ Follow
since Nov 17, 2002
Merit badge: grant badges
For More
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 Ram Sank,

Passed SCJP 1.4 with 81% .
Thanks to Javaranch.com and Danchisolm.net.
( I also lost some time during initial 10 poll questions !!! )
21 years ago
If a thread has locked an object and then issues a "wait" , it will release the locks and goes into waiting mode. What will happen , if this thread is interrupted.?
Will the thread relinquish its wait on the object and come out of the synchronized code or what will happen ?
Hi ,
Can someone tell me if there are 2 threads at "Ready state" , one is at higher priority and one at lower priority , then which one will the JVM start for sure ?
I want to answer "higher priority thread" but want to be sure because when it comes to "Threads" many times the answer is the "unpredictable" .I want to know from exam point of view.
The other likely answer is "We can be sure that number of times a higher priority thread runs is higher than number of times a lower priority thread runs but we cannot say for sure that higher prioriy thread will always start first "
Can someone please explain thread priorities w.r.t SCJP 1.4 ?
can anyone point to pool of questions on assertions ? I read links given by others..but few practise questions will help ...
I also answered C.Compile error to this question.
I got thru line 2 ( since char is treated as unsigned integer prim.) but failed in String .
But I bet only guys who know by heart about all the constructors for all the Wrapper classes can correclty answer this question.
Does this mean that we have to know all the Wrapper classes by heart for SCJP ?
Yes , I will also expect only eat(Horse h) method to be invoked . So the question trickles down to whether the object reference "h" that is passed as a argument to eat method is really a "Horse" or a "Mammal".
Meanwhile , I once asked question in other thread about Bill book on SCJP.
Object A = new Long(5);
Then will A.equals call equals method defined in Object class or Long class ?
The answer was it will call equals of Long class since A is pointing to a Long Object.
So both answers seems to be contradicting each other ...
there was a question in Java Ranch mock exam ( Try new beta version ) that i dont understand...
1. #95 . In a switch statement , argument to case label can be any variable that fit within an int?

I said TRUE. And answer was given False.Explanation was given . can anyone explain more because I got confused.
Hi ,
I have following doubts.Can anyone clear this ?
1. In 1.4 , is "assert" a keyword ? I read in one of the links that we can compile using 1.3 or 1.4 option. The second one will consider "assert" as keyword . Is this correct ? If yes , are there other new additions to Keywords ?
2. This question regards to Bill Brogden exam cram questions .
Object A = new Long(5);

Then it goes on to say A.equals(Long object) will invoke the "equals" of Long class and not "equals" of Object class. IS this because eventhough A is reference of type object , since it is refering to a Long object , A.equals will invoke Long.equals ? Can someone explain more ?
Hi ,
I have a doubt on char . It is quoted as unsigned integer primitive with size of 16 bit.
since this is not signed should not the limit be 2 to power of 16.
if i say
char c= 33700; -----line 1.
should this not give compile error for loss of precision ?
Short is also 16 bit integer primitive (but signed!).
short c = 33700; --- line 2
This gives an compile time -loss of precision message .I understand this since we can store only -32768 to 32767 .
Why does not char behave the same ?
21 years ago