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

What access modifiers can be used for variables?

579


What are the three types of design patterns?

507


Write a java program to print fibonacci series?

534


What is java basic concept?

521


What is a boolean expression in java?

528






What is tochararray in java?

496


Can we override constructors in java?

678


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

511


What methods are used to get and set the text label displayed by a button object?

550


Why call by value prevents parameter value change?

579


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3186


What are recursive functions? Give some examples?

612


What is string builder in java?

554


Is there any sort function in java?

571


Can we have try block without catch block?

580