int a=1;
float b=1.0;
System.out.println(a==b);
Answer Posted / anil kumar rai
error found when compile this code;
if u write 1 in place of 1.0 then output would be "true" or
if u write double in place of float then output would be
same :"true"
thank you
Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Where are register variables stored?
What is the use of parse function in java?
Explain the importance of throws keyword in java?
What is the exact difference in between Unicast and Multicast object?
What is the gregoriancalendar class in java programming?
What is oop in java?
What do you mean by garbage collection used in java?
Name few "optional" classes introduced with java 8 ?
How to find the largest value from the given array.
what is abstract class in Java?
what is a green thread? : Java thread
What is the difference between yielding and sleeping?
What is variable and example?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Is there a case when finally will not execute?