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

Can we assign null to double in java?

549


What does it mean that a method or field is “static”?

553


What is the difference between a method and a function in alice?

576


how to deploy apache tomcat server to weblogic server in java

1599


What is the use of StringTokenizer class?

610






What is an object in java?

559


Is treeset sorted in java?

581


What is the difference between an interface and an abstract class?

540


What are benefits of java?

558


What is the this keyword?

558


What is the difference between compiler and jvm?

554


What is the meaning of variable in research?

559


Is an array a vector?

555


Which programming language is best in future?

526


Can a main method be declared final?

588