ratul banji

Ranch Hand
+ Follow
since Mar 15, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by ratul banji

Hello All,
My name is Ratul Banerjee.I am a 11 years old boy(my DOB is 26th of Feb. 1988) and study at St.Xavier's School,Calcutta in 7th grade.I am also studying Java Programming in some place.By god name I have cleared my SCJP2 exam on 28th of June 2001 by 72% marks.This is just to inform you all.Pray for me.
Sorry pakistani girl..I am the youngest SCJP now !
Thanks
Ratul

23 years ago
JUST FOLLOW THE OBJECTIVES.
TH. ALL.
<marquee> Ratul Banerjee </marquee>
Hi Sandeep,
Try to refer to JLS to understand properly the use of volatile keyword.
<code>
Rules for Volatile Variables
If a variable is declared volatile, then additional constraints apply to the actions of each thread.
Let T be a thread and let V and W be volatile variables.

A use action by T on V is permitted only if the previous action by T on V was load, and a load action by T on V is permitted only if the next action by T on V is use. The use action is said to be "associated" with the read action that corresponds to the load.
A store action by T on V is permitted only if the previous action by T on V was assign, and an assign action by T on V is permitted only if the next action by T on V is store. The assign action is said to be "associated" with the write action that corresponds to the store.
Let action A be a use or assign by thread T on variable V, let action F be the load or store associated with A, and let action P be the read or write of V that corresponds to F. Similarly, let action B be a use or assign by thread T on variable W, let action G be the load or store associated with B, and let action Q be the read or write of W that corresponds to G. If A precedes B, then P must precede Q. (Less formally: actions on the master copies of volatile variables on behalf of a thread are performed by the main memory in exactly the order that the thread requested.)
The load, store, read, and write actions on volatile variables are atomic, even if the type of the variable is double or long.
</code>
ur friend ..
Ratul
<h4>Just AMAZING SCORE...HIMA</h4>
I don't know what. 2 tell .
I think u remember ..we started our preparation allmost similer time.I also passed the exam BUT 100%....W O W.
1ce again ....
<marquee>Congrats </marquee>
[This message has been edited by ratul banji (edited May 22, 2001).]
23 years ago
BUT..Thomas .
The answer of q. 2 is little bit surprising.I am declearing the width as 10 ,,then


[This message has been edited by ratul banji (edited May 11, 2001).]
Hi Nandini,
CONGRATULATIONS
R u 4rm KOLKATA..Nandini ?
Have u given ur exam 4rm GLOBSYN ?
How was the q... is it little bit tough or very tough ?
23 years ago
Hi denish,
0 to 2^16-1
0 to 65535
0 to 1111 1111 1111 1111
'\u0000' to '\uFFFF'
All of above are equivalent, since char is unsigned 2 byte integer.
Hi all,
I think NITIN AND KOUSHIK both r right.
The String created in the pool r not eligible for GC.
If poll's Strings r eligible for GC then wht. will be the diff. btw. String pool and heap.
So..I think String created in the pool r not eligible for GC even u explicitly give a String pool's object null value ...
thanks.
Ratul Banerjee
STATIC VAR. CANNOT BE DECLARED LOCAL.
THANKS ART ...It is clear now.
Thanks shadow
Hi friends,
YES, code 1 is working in jdk 1.2.
and Sorry for this...But , this is not (all) my fault.
Accually , the 1st one is 4rm JQPLUS.

Real question:
---------------
(Question ID :958057127800)
The following method will compile and run without any problems.
public void switchTest(byte x)
{
switch(x)
{
case 'b': // 1
default : // 2
case -2: // 3
case 80: // 4
}
}
a. True.
b. False.
And here is the Explanation given:
-----------------------------------
The following types can be used as a switch variables:
byte, char short and int. Note that, long float double and boolean are not allowed.
All the case constants should be assignable to the switch variable type.
Here, 'a' is assignable to x. Had there been a case label of 128, it would not have compiled. Because the range of a byte is from -128 to 127.
Line //1 does not compile on JDK1.2 but it does work on 1.3! As per specifications it should work.
Thanks.
Ratul Banerjee
Thanks Art
can u tell me then why line 3 is showing -3 on the stnd. o/p.
Can anybody confirm this wht. should be the right answer !!
Thanks.
Hi all,
Related to Shah's post.
Can we have the BONUS MOCK EXAMS on the net which RHE added in there latest edition?
Thanks.