int a=1;
float b=1.0;
System.out.println(a==b);
Answer Posted / anil kumar rai
error found when compile this code;
if u write 1 in place of 1.0 then output would be "true" or
if u write double in place of float then output would be
same :"true"
thank you
Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
How we can execute any code even before main method?
Explain about interthread communication and how it takes place in java?
What is meant by object?
What is the association?
Explain what is encapsulation?
What is oop in java?
How do I remove a character from a string in java?
State the main difference between c++ and java?
Can a constructor be private and how are this() and super() method used with constructor?
What is a Transient Object?
Why main method is called first in java?
What is the difference in between cpp and java? Can u explain in detail?
can rmi and corba based applications interact ?
What is the difference between exception and error in java?
What is formatted output?