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 is meant by distributed application? Why are we using that in our application?
What is set and get methods in java?
What is method and methodology?
Is ++ operator thread-safe in java?
What is unicode used for?
Is there a sort function in java?
What is a byte string?
Which class is used by server applications to obtain a port and listen for client requests?
Is double bigger than float?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
How do you escape sequences in java?
Explain static nested classes ?
What is a variable and constant?
What is a boolean field?
Why main method is static in java?