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

How do you check if two given string are anagrams?

964


Can singleton class be cloned?

1052


What are the 2 types of java programs?

1111


What is a layout manager and what are different types of layout managers available in java awt?

1245


Why is java so important?

1120


List any five features of java?

1030


How do you reverse sort a list in java?

935


State two differences between C and Java.

1332


What is the use of using enum to declare a constant?

1025


What is the difference between length and length() method in java?

1114


do I need to use synchronized on setvalue(int)? : Java thread

1010


What are the java ide’s?

1027


Which variables are stored in stack?

898


What happens when you add a double value to a string?

986


What is finalize()? Is finalize() similar to a destructor?

965