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

Is string a datatype?

995


What is the difference between ArrayList and Vector? which one is better in Java

1155


Difference between default and protected access specifiers?

1140


What is the difference between actual and formal parameters?

958


What do you mean by of string::valueof expression in java 8?

973


Why is String immutable?

1073


What is the use of protected in java?

1031


How do you use compareto method?

1028


What are green threads in java?

1012


What is a double vs float?

1025


What does @param args mean in java?

1069


what do you understand by the term string with respect to java?

1049


Distinguish between a predicate and a function?

999


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1334


What is the relationship between class and object?

1056