Java Primitive Data Type for Float and Double

double myFirstValue = 200; --> Does '200' takes as double value or Integer value double mySecondValue = 0.45; --> Does '0.45' takes as double value or float value



Read more here: https://stackoverflow.com/questions/64893350/java-primitive-data-type-for-float-and-double

Content Attribution

This content was originally published by Vikas Jain at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: