int a=1;
float b=1.0;
System.out.println(a==b);
Answer Posted / john
main()
{
int a=1;
float b=1.0;
if(a==b)
printf("true");
else
printf("false");
}
what will be the output for this ?
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
Which api is provided by java for operations on set of objects?
Which is better list or arraylist in java?
What are alternatives to java serialization?
Explain abstract class in java?
Where is singleton pattern used?
what do you mean by marker interface in java?
Can you override static methods?
What is the advantage of preparedstatement over statement?
What are data structures in java?
What happens if an exception is throws from an object's destructor?
Can we increase array size dynamically in java?
What is the difference between a choice and a list?
How do you declare an array that will hold more than 64KB of data?
How garbage collection is done in java?