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 is the default size of arraylist in java?
Why convert an applet to an application?
Explain the selection sort algorithm and state its time complexity?
What are the main uses of the super keyword?
Why vector class is used?
How to perform bubble sort in java?
What are the classes of java?
What is the difference between checked exception and unchecked exception?
Can constructor be synchronized?
what is inner class in java?
Explain what is encapsulation?
What are the states of thread in java?
What is hotjava?
Is empty list java?
Does hashset allow duplicates in java?