Hi,
I am not able to understand why Byte b1= new Byte(1); line generates an error..
Pls explain what am I missing..
Also , I wud like to know how to identify double & float value;
is it that only if explicitly specified 10.0f it is a float,else 10.0 is a double
May be what i m asking is too simple..pls excuse
public class Test12{
public static void main(
String a[]){
byte b = 100;
Byte b1= new Byte(1);
Byte b2 = new Byte(b);
System.out.println(b1 == b2);
System.out.println(b1.equals(b2));
}
}