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
What is an object in java and how is it created?
What is oop principle in java?
What do you understand by soft reference?
How many classes can any class inherit java?
What is the do while loop syntax?
What do you mean by singleton class in java?
What an i/o filter in java programming?
What is substring 1 in java?
What is nested class?
What is the main difference between java platform and other platforms?
What is the synchronized method modifier?
What is arraylist e?
Is c better than java?
What are the differences between throw and throws?
Why is the type for real numbers called double?