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 deque in the java collections framework? : java collections

548


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

579


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

619


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2545


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

589






How do I find jre path in windows?

535


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

582


can u draw class/object diagram for ATM

5541


Should we create system software ( e.g operating system ) in java ?

588


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1588


What is the enumerator of the java collection framework? : java collections

572


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

557


What is the use of hashcode in java ?

583


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

610


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2576