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 is an object in java and how is it created?

1004


What is oop principle in java?

1051


What do you understand by soft reference?

982


How many classes can any class inherit java?

926


What is the do while loop syntax?

979


What do you mean by singleton class in java?

855


What an i/o filter in java programming?

1012


What is substring 1 in java?

1061


What is nested class?

947


What is the main difference between java platform and other platforms?

997


What is the synchronized method modifier?

1133


What is arraylist e?

1019


Is c better than java?

906


What are the differences between throw and throws?

1029


Why is the type for real numbers called double?

905