Hi,
What is the default value of float and double datatype in Java?
Its my interview question anyone know the correct answer?
anyone..
Hi,
What is the default value of float and double datatype in Java?
Its my interview question anyone know the correct answer?
anyone..
In java the default value of float is 0.0f.
and the default value of double is 0.0d.
You make easily a program and check the default value of ant data type.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)