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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1819


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

1614


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

566


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2539


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2565






What are the types of java collections? : java collections

544


Should we create system software ( e.g operating system ) in java ?

579


can u draw class/object diagram for ATM

5531


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

595


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

568


What are the different types of classes implemented in the set interfaces? : java collections

610


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1680


What are the differences between the java collection and the java list? : java collections

616


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

549


How do I find jre path in windows?

529