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

What is an Ioc pattern? There are assemblies in .net for establishing this task, Whats the special in Java /j2ee technologies about IOC

2 Answers  


what is the difference between checked and unchecked Exceptions?

4 Answers   CTS,


What is the difference between comparable and comparator in java.util pkg?

0 Answers  


Which interface does java.util.hashtable implement?

0 Answers  


What are the considerations to be made in case of loops in java ?

0 Answers  


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

0 Answers  


What is markup language?

1 Answers  


Difference b/w >> and >>> ?

1 Answers   Adobe, Infosys,


Write a interface "CarOperations" with the following methods void turnOnEngin() void turnOffEngin() void turnOnLigths() void turnOffLights() void turnLeft() void turnRight() void accelerate() void deaccelerate() void putBreaks() void releaseBreaks()

1 Answers  


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

0 Answers   iGate,


What are the different types of features of the java collections framework? : java collections

0 Answers  


What is the servletcontext listener and what is JspContext and page context pls tell in simple words.

1 Answers   IBM,


Categories