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 are the types of methodology?

1089


What are conditionals and its types?

1136


Can list be final in java?

920


Can a final variable be null?

1013


What is java basic concept?

1034


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

997


What is the difference between heap and stack memory?

1190


Explain static nested classes ?

1109


Which is the class in java?

1040


Can you access non static variable in static context?

1038


What is java literals?

1127


Can a class with private constructor be extended?

939


How does enum work in java?

1015


What is the meaning of find and replace?

1030


What is the difference between equals() and?

1188