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 |
how to deploy the web application ?
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?
what is difference between vector and arraylist?.
what is the difference between through and throws?
Which interface does java.util.hashtable implement?
what is mean by hasing and maping in java platform and advantage?
how to delete cookie information?and when it will delete?
How many controlers are there in spring? Plz send me ans
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
How is hashset maintained in memory by java ?
What is deque in the java collections framework? : java collections
How to implement or use the singleton class in java?