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 does string mean in java?
Can we change the value of static variable?
What is the difference between choice and list?
What is a final class in java?
What is a treemap in java?
What’s the difference between callable and runnable?
What is the latest java version?
How to compare strings in java?
How do you declare an array that will hold more than 64KB of data?
hr interview how many minutes asking question
How do you remove duplicates in java?
What do you mean by local class?
Can you use abstract and final both with a method?
How do you convert an int to a double in java?
Explain the purpose of garbage collection in Java?