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 we use string in switch case in java?

1132


What does string [] args mean?

1067


How do constructors use this() and super()?

1186


What is the disadvantage of java?

1013


Why bytecode is called bytecode?

1307


What is the difference between this() and super() in java?

1099


How many types of flags are there?

1061


What are the advantages of java inner classes?

1115


Explain the difference between call by refrence and call by value?

1076


What technique can be employed to compare two strings?

1180


How will you get the platform dependent values like line separator, path separator, etc., ?

1080


What are the different ways of implementing thread? Which one is more advantageous?

1041


Describe the syntax of multiple inheritance? When do we use such an inheritance?

1141


How do you identify independent and dependent variables?

1069


Can a final variable be null?

1060