int a=1;
float b=1.0;
System.out.println(a==b);

Answer Posted / sudha

if u write
int a=1;
float b=1.0f;
system.out.println(a==b);

answer woill b true...as of now it wont compile

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is factor r?

516


What is tree in java?

485


Can we override compareto method?

496


How do listeners work?

503


Can we make the abstract methods static in java?

582






Discuss 2D arrays.

604


What are the data types supported by java?

542


What does a method signature consist of?

507


Are arrays static in java?

578


Can we create constructor in abstract class ?

574


how many types of Inheritance?

641


Why super is first line in java?

551


Why generics are used in java?

545


What is exception handling in java?

570


How can we make a class virtual?

634