int a=1;
float b=1.0;
System.out.println(a==b);

Answer Posted / anilkumar munaganuri

in above question by providing explicit type casting as
float b=(float)1.0
then we can get output as true

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

placement papaers of spring computing technology

1027


Can you declare the main method as final?

531


Where import statement is used in a java program?

610


Can we overload final method in java?

557


What is exception handling in java?

576






what is comparable and comparator interface?

582


How do you use compareto?

552


What is the applet security manager, and what does it provide?

544


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

617


What is thread pool? How can we create thread pool in java?

627


What is core java called?

526


What is the purpose of default constructor?

584


Does constructor return any value?

585


What does a method signature consist of?

513


When can we say that threads are not lightweight process in java?

598