Which of the following declaration is wrong?
int i=45;
float j = 45.0;
double k=45.0;

Answer Posted / rohit

by default it takes double.So we need to explicitly mention it as float

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the interfaces in java collections? : java collections

603


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

582


What are the considerations to be made in case of loops in java ?

558


What is the Spring2.5 MVC Navigation flow?

5359


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

1604






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

531


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

562


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

564


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

595


can u draw class/object diagram for ATM

5524


what is mean by hasing and maping in java platform and advantage?

1822


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

557


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1673


What is the use of hashcode in java ?

568


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

569