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);

Answers were Sorted based on User's Feedback



int a=1; float b=1.0; System.out.println(a==b); ..

Answer / dsr

int a=1;
float b =1.0; //error
System.out.println(a==b);

Is This Answer Correct ?    0 Yes 1 No

int a=1; float b=1.0; System.out.println(a==b); ..

Answer / john

what is the output fr this C code ? AND WHY ?

main()
{
int a=1;
float b=1.0;
if(a==b)
printf("true");
else
printf("false");
}

Is This Answer Correct ?    0 Yes 1 No

int a=1; float b=1.0; System.out.println(a==b); ..

Answer / john

main()
{
int a=1;
float b=1.0;
if(a==b)
printf("true");
else
printf("false");
}

what will be the output for this ?

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

Why java uses the concept of the string literal?

0 Answers  


Is ++ operator thread-safe in java?

0 Answers  


3) Suppose you are a very rich person, having 50 rooms and you have lost the key for one of the room's. How effectively you can find this key? (Qs2 and Qs3 are related)

3 Answers   RBS,


Why is java so popular?

0 Answers  


Write a program to find the whether a number is an Armstrong number or not?

0 Answers   Aspire, Infogain,


Difference between association, composition and aggregation?

0 Answers  


What are the Abstract Classes provided by Java?

5 Answers   Oracle,


What happens when main () method is declared as private?

0 Answers   Tech Mahindra,


Which access specifier can be used with class ?

0 Answers  


Explain what is encapsulation?

0 Answers  


What is the difference between Java and C++?

0 Answers   Integreon, TCS, ZS Associates,


What is the purpose of the finally clause?

3 Answers  


Categories