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
List out five keywords related to exception handling ?
How to change value in arraylist java?
Does chrome use java?
Explain runtime exceptions?
How strings are created in java?
Where and how can you use a private constructor?
Which sorting algorithm is in place?
Why is static used?
What are packages in java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What is the loop in java?
Why do we override tostring method in java?
Does google use java?
What is the type of lambda expression?
What is the purpose of garbage collection in java? When is it used?