Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19098
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: locals es loco? |
| Date | 2012-10-04 08:09 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <k4k8qk$sib$1@dont-email.me> (permalink) |
| References | <4b5511c5-799d-4469-9502-cdc39491234b@googlegroups.com> |
On 10/4/2012 7:50 AM, bob smith wrote: > I'm trying to come up with a mnemonic that helps me remember which > variables get auto-initialized in Java. Is it just locals that you > have to explicitly initialize? > I think so. There's class variables, instance variables, local variables, and method arguments off the top of my head. The first two are always initialized to null/0/false if you don't init them. Technically method arguments need to be initialized, but the compiler won't let you call a method without supplying all of the arguments.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
locals es loco? bob smith <bob@coolfone.comze.com> - 2012-10-04 07:50 -0700
Re: locals es loco? markspace <-@.> - 2012-10-04 08:09 -0700
Re: locals es loco? Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-10-04 11:45 -0400
Re: locals es loco? Lew <lewbloch@gmail.com> - 2012-10-04 12:01 -0700
Re: locals es loco? Roedy Green <see_website@mindprod.com.invalid> - 2012-10-05 00:06 -0700
Re: locals es loco? Lew <lewbloch@gmail.com> - 2012-10-05 10:55 -0700
Re: locals es loco? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-10-05 19:01 +0000
Re: locals es loco? Lew <lewbloch@gmail.com> - 2012-10-05 12:41 -0700
Re: locals es loco? Roedy Green <see_website@mindprod.com.invalid> - 2012-10-05 15:38 -0700
csiph-web