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 is an algorithm in java collection framework? : java collections

581


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1588


What are the interfaces in java collections? : java collections

616


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

574


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

549






What are the types of the main implementing classes in the map interfaces? : java collections

613


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

615


What are the different types of ways where you can iterate over a list? : java collections

574


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

1614


What are maps interfaces in the java collections? : java collections

573


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

602


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

593


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

540


please mail me the interview question based on java/j2ee

1537


How is hashset maintained in memory by java ?

592