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 use string in switch case in java?
What does string [] args mean?
How do constructors use this() and super()?
What is the disadvantage of java?
Why bytecode is called bytecode?
What is the difference between this() and super() in java?
How many types of flags are there?
What are the advantages of java inner classes?
Explain the difference between call by refrence and call by value?
What technique can be employed to compare two strings?
How will you get the platform dependent values like line separator, path separator, etc., ?
What are the different ways of implementing thread? Which one is more advantageous?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
How do you identify independent and dependent variables?
Can a final variable be null?