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


Please Help Members By Posting Answers For Below Questions

What is time complexity java?

532


Difference between Linked list and Queue?

602


How to print an arraylist in java?

491


explain the difference between jdk and jvm?

557


What is string args [] in java?

537






What is boolean law?

512


What is an example of a boolean?

567


What is the size of an array?

547


What are the two ways to create a thread?

530


What are accessor methods in java?

547


How do you square a number?

576


Why main function is static?

665


What is nextline method in java?

552


How do I know if java is installed?

513


Is there any difference between nested classes and inner classes?

533