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 |
whatis arguments &what is default argument
what is acl(access control list)?
How is hashset maintained in memory by java ?
what is the IDE that you have used to write your java programs?
2 Answers Inforica, Interface Software,
Runining mutiple tomcat server in a single machine is possible Yuo wil have to duplicate configuration with different port numbers
Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any alternative to skip some of those? Thanks in advance...
What is the use of log4j and how to make use of that in a application?
what is diff string and stringbuffer
What is the enumerator of the java collection framework? : java collections
Which is the better framework for web applications, struts or spring, and why?
Which sorting algorithm is used by collections.sort() in java ?
What are the classes in the java collection framework? : java collections