Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / anil kumar rai

error found when compile this code;
if u write 1 in place of 1.0 then output would be "true" or
if u write double in place of float then output would be
same :"true"

thank you

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different type of exceptions in java?

1013


How many ways can we create the string object?

1060


What are basic keywords?

1074


What are features of java?

1081


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1123


Explain about assignment statement?

1065


How do you test a method for an exception using junit?

1264


Explain the init method?

1032


What is space character in java?

1172


How can you set an applet’s height and width as a percentage?

976


What is linked hashmap and its features?

1070


Can we override singleton class?

1025


how we can make a read-only class in java?

1037


What is annotation in java?

1105


Which package is always imported by default?

1143