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

if u just convert the float to double that will be sufficient
u get the answer "true"

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out five keywords related to exception handling ?

956


How to change value in arraylist java?

1095


Does chrome use java?

908


Explain runtime exceptions?

1108


How strings are created in java?

971


Where and how can you use a private constructor?

921


Which sorting algorithm is in place?

902


Why is static used?

980


What are packages in java?

1460


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

945


What is the loop in java?

1049


Why do we override tostring method in java?

895


Does google use java?

907


What is the type of lambda expression?

951


What is the purpose of garbage collection in java? When is it used?

997