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

Can memory leak happen java?

965


What is the properties class?

1030


Can we use catch statement for checked exceptions?

913


What are loops in java? What are three types of loops?

982


What does java final mean?

961


Can one thread block the other thread?

976


What is java regex?

940


Explain the init method?

919


What is oop principle in java?

1050


How do you check if an arraylist is not empty?

1054


What is runtime locatable code?

1361


How to make object serializable in java?

923


Can you extend main method in java?

1093


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

997


What is method overloading with type promotion?

1209