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


Please Help Members By Posting Answers For Below Questions

What is the default size of arraylist in java?

509


Why convert an applet to an application?

620


Explain the selection sort algorithm and state its time complexity?

613


What are the main uses of the super keyword?

558


Why vector class is used?

544






How to perform bubble sort in java?

591


What are the classes of java?

543


What is the difference between checked exception and unchecked exception?

530


Can constructor be synchronized?

544


what is inner class in java?

628


Explain what is encapsulation?

608


What are the states of thread in java?

517


What is hotjava?

560


Is empty list java?

525


Does hashset allow duplicates in java?

582