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 memory leak happen java?
What is the properties class?
Can we use catch statement for checked exceptions?
What are loops in java? What are three types of loops?
What does java final mean?
Can one thread block the other thread?
What is java regex?
Explain the init method?
What is oop principle in java?
How do you check if an arraylist is not empty?
What is runtime locatable code?
How to make object serializable in java?
Can you extend main method in java?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is method overloading with type promotion?