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 is time complexity java?
Difference between Linked list and Queue?
How to print an arraylist in java?
explain the difference between jdk and jvm?
What is string args [] in java?
What is boolean law?
What is an example of a boolean?
What is the size of an array?
What are the two ways to create a thread?
What are accessor methods in java?
How do you square a number?
Why main function is static?
What is nextline method in java?
How do I know if java is installed?
Is there any difference between nested classes and inner classes?