difference between Byte constructor and Byte.valueOf() method
Byte byte1=new Byte("10");
Byte byte2=Byte.valueOf("10");
System.out.println(byte1);
System.out.println(byte2);
Both byte1 and byte2 are printing the same value 10.Then what is the
difference between constructor parameterized Byte and valueOf() method.
No comments:
Post a Comment