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...


Which of the following declaration is wrong?
int i=45;
float j = 45.0;
double k=45.0;

Answers were Sorted based on User's Feedback



Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;..

Answer / shukla.swapnil

float j = 45.0; <=== this declaration is wrong

Is This Answer Correct ?    24 Yes 5 No

Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;..

Answer / azad bajaj

Correct way to declare is
floar j= 45.0f;

Is This Answer Correct ?    19 Yes 4 No

Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;..

Answer / pranav

float j = 45.0; <- This statement is wrong

Correct way is:

float j = 45.0f;

Is This Answer Correct ?    12 Yes 1 No

Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;..

Answer / mohit

he is right.....

Is This Answer Correct ?    4 Yes 1 No

Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;..

Answer / rohit

by default it takes double.So we need to explicitly mention it as float

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More Java J2EE AllOther Interview Questions

whatis arguments &what is default argument

2 Answers   CTS,


what is acl(access control list)?

1 Answers   Athena, HCL,


How is hashset maintained in memory by java ?

0 Answers  


what is the IDE that you have used to write your java programs?

2 Answers   Inforica, Interface Software,


Runining mutiple tomcat server in a single machine is possible Yuo wil have to duplicate configuration with different port numbers

2 Answers   HCL,


Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any alternative to skip some of those? Thanks in advance...

2 Answers   Span Systems,


What is the use of log4j and how to make use of that in a application?

2 Answers  


what is diff string and stringbuffer

7 Answers   CTS, HCL,


What is the enumerator of the java collection framework? : java collections

0 Answers  


Which is the better framework for web applications, struts or spring, and why?

1 Answers   IBM, TATA,


Which sorting algorithm is used by collections.sort() in java ?

0 Answers  


What are the classes in the java collection framework? : java collections

0 Answers  


Categories