Rajesh Lohani

Greenhorn
+ Follow
since May 14, 2010
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 Rajesh Lohani

Give ExamLab for SCJP6 that is by Devaka.
Its really good.
Thanks for the info and for clearing my doubts Matthew.

Hi,

I have the following code :


As map1 is generic and will take key as String,value as Integer so whats the reason that the above code is not giving compile/run time problem ?
Agree with Venkat that output is Rally's without any compilation error.
Both have the same values but both are treated as different object(Because range is outside -128 to 127) as Abhinav stated above.
== compare only for the objects so return false and
in case of equals, it checks for only value and both having same value so it returns true...
I also don't understand the explanation of bytes...
please somebody elaborate it...