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
placement papaers of spring computing technology
Can you declare the main method as final?
Where import statement is used in a java program?
Can we overload final method in java?
What is exception handling in java?
what is comparable and comparator interface?
How do you use compareto?
What is the applet security manager, and what does it provide?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What is thread pool? How can we create thread pool in java?
What is core java called?
What is the purpose of default constructor?
Does constructor return any value?
What does a method signature consist of?
When can we say that threads are not lightweight process in java?