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
Is string a datatype?
What is the difference between ArrayList and Vector? which one is better in Java
Difference between default and protected access specifiers?
What is the difference between actual and formal parameters?
What do you mean by of string::valueof expression in java 8?
Why is String immutable?
What is the use of protected in java?
How do you use compareto method?
What are green threads in java?
What is a double vs float?
What does @param args mean in java?
what do you understand by the term string with respect to java?
Distinguish between a predicate and a function?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What is the relationship between class and object?