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
What access modifiers can be used for variables?
What are the three types of design patterns?
Write a java program to print fibonacci series?
What is java basic concept?
What is a boolean expression in java?
What is tochararray in java?
Can we override constructors in java?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What methods are used to get and set the text label displayed by a button object?
Why call by value prevents parameter value change?
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
What are recursive functions? Give some examples?
What is string builder in java?
Is there any sort function in java?
Can we have try block without catch block?