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 / 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


Please Help Members By Posting Answers For Below Questions

Can we split string with in java?

1068


Is string a data type in java?

1052


What are constants?

1102


What is Java Package and which package is imported by default?

1148


What does flagged out mean?

1116


What is the difference between preparedstatement and statement in java?

1232


What is the loop in java?

1226


How are the elements of a gridbaglayout organized?

1119


Why are generics used?

1029


What is the program compilation process?

1186


What is java in simple terms?

1053


How do I enable java in safari?

1092


What is the purpose of a default constructor?

1157


List types of storage classes in java?

1218


Can I declare a class as private?

1124