posted 19 years ago
Look at the code below:
float ff[] = new float[2];
System.out.println("The value of float is " + ff[0]);
System.out.println("The value of float is " + ff[1]);
It displays the output as:
The value of float is 0.0
The value of float is 0.0
Well, i was wondering whether 0.0f should be displayed rather than 0.0??