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 is the difference amongst jvm spec, jvm implementation, jvm runtime ?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is difference between word and integer?
What is core java used for?
What is java object name?
What is java ceil?
What is the purpose of a default constructor?
What are the different ways to handle exceptions?
Is array passed by reference in java?
How do you allocate memory to object?
Explain the difference between collection api and stream api in java8?
What are Normalization Rules? Define Normalization?
What is early binding and late binding in java?
Why we used vector class?
What are the methods used to implement for the key object in the hash map?