A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Nov 03, 2003
Nov 03, 2003 12:38:00
what is the default value of float primitive. please let me know the answer.
Joined: Aug 25, 2003
Nov 03, 2003 13:20:00
is the correct answer if the variable is a member of a class. If it's local, then it remains unassigned (no default value is given) and cannot be used until it gets a value.
I agree. Here's the link:
subject: simple doubt
0.0d or 0.0f or 0 or 0.0????
float's default value
Doubt About implicit typecasting
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015