Regards,<br />Samir (SCJP 1.4)
Thanks and Regards, Amit Taneja
no casting is required if we put value which is static final
Regards,<br />Samir (SCJP 1.4)
if you think you can you r right<br />if you think you can not you r double right
Anbudan & Mahalo,<br />Arul<br /> <br />-Not a sun certified Java professional :-)
if you think you can you r right<br />if you think you can not you r double right
So far I have known that precision can only be applied to float and double data types. You said long is a single precision. According to me, int as well as long are non precision numbers.
the java compiler will convert byte, short and int to int data types before using them
That is why when assigning int to byte or short won't give any errors.
But in case of returning long to int there may be a loss of precision (aah!!! why I am using the word precision).
Anbudan & Mahalo,<br />Arul<br /> <br />-Not a sun certified Java professional :-)
Originally posted by Arulkumar Gopalan:
single precision number: long
double precision number: double
byte, short, int, float are not precision numbers.
SCJP 1.4 (100%) Done.<br />SCJD (URLyBird 1.2.3 Started)
SCJP 1.4 (100%) Done.<br />SCJD (URLyBird 1.2.3 Started)
if you think you can you r right<br />if you think you can not you r double right
SCJP 1.4 (100%) Done.<br />SCJD (URLyBird 1.2.3 Started)
SCJP 1.4 (100%) Done.<br />SCJD (URLyBird 1.2.3 Started)
Anbudan & Mahalo,<br />Arul<br /> <br />-Not a sun certified Java professional :-)
if you think you can you r right<br />if you think you can not you r double right
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|