haven't you read the basics of java anywhere before? thanks for the explaination though..
regards, jd On 8/10/10, sunil sharma <[email protected]> wrote: > Hi Group > > I got the answer for my question: > > > - Field variables (class members) are automatically initialized to > default values > - Local variables (method or constructor variables) are > *not*automatically initialized > - Arrays, whether field or local variables, are automatically initialized > to the default values of their declared type > > > > > Regards > sunil sharma > > > On Mon, Aug 9, 2010 at 12:15 AM, Pete Soper <[email protected]> wrote: > >> Aha. Note that automatics (method-local variables) are not initialized (by >> the system): an explicit assignment is required. Also, float and double >> class and instance fields are initialized to 0.0F and 0.0D respectively. >> >> -Pete >> >> > > -- > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/javaprogrammingwithpassion?hl=en -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
