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
Answer / shukla.swapnil
float j = 45.0; <=== this declaration is wrong
Is This Answer Correct ? | 24 Yes | 5 No |
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 |
Answer / rohit
by default it takes double.So we need to explicitly mention it as float
Is This Answer Correct ? | 4 Yes | 2 No |
Which sorting algorithm is used by collections.sort() in java ?
What is difference between Application Server and Web Server?
What is java collection? : java collections
What is the use of hashcode in java ?
Why do you use Context Object
What is IOC in spring?
what is jndi?
Which interface does java.util.hashtable implement?
whats the relation ship between LDAP and JNDI?
What is the use of the list interface in the java collection? : java collections
How is hashset maintained in memory by java ?
Should we create system software ( e.g operating system ) in java ?