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

What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

969


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

932


What is difference between word and integer?

1080


What is core java used for?

1128


What is java object name?

1000


What is java ceil?

1038


What is the purpose of a default constructor?

1099


What are the different ways to handle exceptions?

1003


Is array passed by reference in java?

1032


How do you allocate memory to object?

1002


Explain the difference between collection api and stream api in java8?

981


What are Normalization Rules? Define Normalization?

1059


What is early binding and late binding in java?

1195


Why we used vector class?

1071


What are the methods used to implement for the key object in the hash map?

1046