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

What does method mean?

1072


What is the use of runnable interface?

1175


What is serialversionuid?

1091


What is type inference in java8?

1052


What happens to a static var that is defined within a method of a class?

1033


Can you start a thread twice in Java?

1123


Is java a prime method?

990


What is default constructors?

1007


What is a Presistent Object?

1240


What does it mean that a class or member is final?

997


what is thread? : Java thread

986


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

2342


What is logical variable?

986


What is a modifier?

1523


Can a class have 2 constructors?

900