1.

Give examples of double and float data type in java and explain the difference ​

Answer»

Answer:

Though both float and double datatype are used to represent floating-point numbers in JAVA, a double DATA type is more PRECISE than float. A double VARIABLE can provide precision up to 15 to 16 decimal points as COMPARED to float precision of 6 to 7 decimal digits.16-May-2016



Discussion

No Comment Found