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 does string mean in java?

1102


Can we change the value of static variable?

961


What is the difference between choice and list?

1086


What is a final class in java?

1013


What is a treemap in java?

1007


What’s the difference between callable and runnable?

1098


What is the latest java version?

1056


How to compare strings in java?

1006


How do you declare an array that will hold more than 64KB of data?

1290


hr interview how many minutes asking question

2042


How do you remove duplicates in java?

1016


What do you mean by local class?

1006


Can you use abstract and final both with a method?

1074


How do you convert an int to a double in java?

1058


Explain the purpose of garbage collection in Java?

1026