PDA

View Full Version : Default value of float and double datatype in Java?



rafiqtolas
December 4th, 2013, 06:27 AM
Hi i am rafiq,


What is the default value of float and double datatype in Java? Its my interview questions could anyone tell me the answer please..

r-senior
December 4th, 2013, 10:12 AM
If that question comes up, it's not about the default value; it's about giving you an opportunity to show your understanding of the difference between fields and local variables, writing clear code and how Java traps programming errors that are common in languages like C.

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html