int a=1;
float b=1.0;
System.out.println(a==b);
Answer Posted / narasimha
i am sorry to say anil even if you put double in place
float also you are going to get flase not true.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What are meta-annotations?
How do you convert boolean to boolean?
Explain the importance of import keyword in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
What is data movement?
What is annotation in java?
What do you mean by collectors in java 8?
What is the synchronized method modifier?
List the three steps for creating an object for a class?
What is equals method in java?
What is methods and methodology?
Which java ide is used the most?
Why wait and notify methods are declared in object class?
Is an array a vector?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?