What are the general rules governing the use of the == operator. I notice we cannot compare String == StringBuffer . Why is this. Do the objects on both sides have to be in some sort of hierarchy ? thanx
A compile-time error occurs if it is impossible to convert the type of either operand to the type of the other by a casting conversion (�5.5). The run-time values of the two operands would necessarily be unequal.
----------- Please don't duplicate posts. [ August 17, 2002: Message edited by: Jose Botella ]
SCJP2. Please Indent your code using UBB Code
Soum Sark
Ranch Hand
Joined: May 31, 2002
Posts: 50
posted
0
Thanx for the anwer.. i am having some problems with IE and hence the double thread ..