While it is alright to return a constant integer from a method where a short or a byte is expected, why does this not work with returning a constant long in place of an integer?
For eg. the following is fine However this doesent work out:
A possible loss of precision error is thrown. Similarly, returning a constant double for a float is also disallowed. Does this have anything to do with the float-value set and double-value set? [ September 07, 2006: Message edited by: Aniket Patil ]
SCJP 5.0 | SCWCD 1.4 <br /> <br />If you don't know where you are going, any road will take you there!