saran bala

Greenhorn
+ Follow
since Oct 17, 2007
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 saran bala

HI,
I'm finding very difficulty in solving problems in generics and collections.Will it be more questions(generics) in the exam?
hi,
i'm planning to buy preparation kit.which is the best one?whizlabs or enthuware?
HI,
The key point here to note here is that the constructors are not called while deserializing the object.While serializing the object,the constructors will be called.
So while serializing the b,superclass constructors are called..output is 1 2.then while deserilasing the object,since the food is not serialised,its constructor is called once again and the output is 1 and finally restore and 42.
HI,
I saw many preparation kits for practising scjp5.0 exam.But only trial version is available.I'm planning to buy the original version.can you please tell me which is the best one to prepare?
hi,I'm planning to write scjp5.0 at the end of this month.Can anyone please tell me that is there any changes in the exam pattern or any new topics added?Also tell me the topics.(just to confirm)
[ October 20, 2007: Message edited by: saran bala ]
can you please explain the reason?

public class Test12{
public static void main(String a[]){
byte b = 100;
Byte b1= new Byte(100);
Byte b2 = new Byte(b);
System.out.println(b1 == b2);
System.out.println(b1.equals(b2));
}
}
What is output?

Answer:Complier error
public class Test9{
public static void main(String a[]){
final byte b = 1;
char c = 2;
short s = 3;
c = b; // 1
}
}
In this code,if byte is declared as final,while assigning byte to char,there is no problem in compilation.But if byte is not final,then compilation fails at lime marked 1.Why is it so?