Dilbert Gilbert

Greenhorn
+ Follow
since May 13, 2003
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 Dilbert Gilbert

Thanks a lot Cyril, it was very helpful.
I tried the codes that u gave me, but then i had some problem:
String s1 = new String("Compare me");
String s2 = "Compare me";
if (s1==s2) System.out.println("true");
else System.out.println("false");
This code returns FALSE....i thot since the literal is already in the pool, it shud have returned TRUE, pls explain.......
Also, can u pls tell me, what are the default(if i donot initialize them) values of these primitives..
Thanks
Thanks a lot Cyril, it was very helpful.
I tried the codes that u gave me, but then i had some problem:
String s1 = new String("Compare me");
String s2 = "Compare me";
if (s1==s2) System.out.println("true");
else System.out.println("false");
This code returns FALSE....i thot since the literal is already in the pool, it shud have returned TRUE, pls explain.......
Also, can u pls tell me, what are the default(if i donot initialize them) values of these primitives..
Thanks
I am new to Java, and I have just started reading some books on it, and wud like to know 2 things:
1. what xactly(in simple words) is 'primitive' and 'literal'?
2. What is 'Heap' and 'Stack'?
Please elaborate
I wanted to know, to appear for Platform 1.4, for SCJP, which books would be recommended? I am not sure, which books to refer to. Please HELP!!!