Hi Vishy,
I guess this should be the reason. The API for the toString() in Byte class says
=============================
toString
public static
String toString(byte b)
Returns a new String object representing the specified Byte. The radix is assumed to be 10.
Parameters:
b - the byte to be converted
Returns:
the string representation of the specified byte
===========================
Note "Returns a new String object...".
Try this code to check for values.
class a
{
public static void main(String args[])
{
Byte b = new Byte("127");
if(b.toString().equals(b.toString()))
System.out.println("true");
else
System.out.println("false");
}
}