int a=1;
float b=1.0;
System.out.println(a==b);
Answer Posted / anilkumar munaganuri
in above question by providing explicit type casting as
float b=(float)1.0
then we can get output as true
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we split string with in java?
Is string a data type in java?
What are constants?
What is Java Package and which package is imported by default?
What does flagged out mean?
What is the difference between preparedstatement and statement in java?
What is the loop in java?
How are the elements of a gridbaglayout organized?
Why are generics used?
What is the program compilation process?
What is java in simple terms?
How do I enable java in safari?
What is the purpose of a default constructor?
List types of storage classes in java?
Can I declare a class as private?