int a=1;
float b=1.0;
System.out.println(a==b);
Answer Posted / kavitha
if u just convert the float to double that will be sufficient
u get the answer "true"
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does method mean?
What is the use of runnable interface?
What is serialversionuid?
What is type inference in java8?
What happens to a static var that is defined within a method of a class?
Can you start a thread twice in Java?
Is java a prime method?
What is default constructors?
What is a Presistent Object?
What does it mean that a class or member is final?
what is thread? : Java thread
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is logical variable?
What is a modifier?
Can a class have 2 constructors?