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

Answer Posted / pranav

float j = 45.0; <- This statement is wrong

Correct way is:

float j = 45.0f;

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

585


my interviewer asked me what technical specification you used how to answer that question

1927


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

596


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

1808


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

544






What are the main classes of the list interfaces? : java collections

571


What is the use of the list interface in the java collection? : java collections

594


What is iterator in the java collections framework? : java collections

533


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1574


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

543


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

1606


what is mean by hasing and maping in java platform and advantage?

1825


What is an algorithm in java collection framework? : java collections

566


What do you understand by synchronization? Why is it important?

564


What is deque in the java collections framework? : java collections

536