int a=1;
float b=1.0;
System.out.println(a==b);
Answer Posted / kavitha
if u just convert the float to double that will be sufficient
u get the answer "true"
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the types of methodology?
What are conditionals and its types?
Can list be final in java?
Can a final variable be null?
What is java basic concept?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is the difference between heap and stack memory?
Explain static nested classes ?
Which is the class in java?
Can you access non static variable in static context?
What is java literals?
Can a class with private constructor be extended?
How does enum work in java?
What is the meaning of find and replace?
What is the difference between equals() and?