Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #17441
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: why does this work? |
| Date | 2012-08-08 17:33 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <67db1219-70f6-4533-9bb8-b7ef14a7ee86@googlegroups.com> (permalink) |
| References | <aa374d3f-d1d4-43e0-be0a-972b80316255@googlegroups.com> <puxUr.3847$l63.2567@newsfe20.iad> <b36aec4c-169d-4b5c-8e0d-168160939323@googlegroups.com> |
dkoleary wrote: > Got it... I do remember reading that somewhere else. main only gets executed once. That isn't strictly true. The 'main()' method is only called for one class one time by the JVM when it starts, but nothing prevents code in the program from explicitly calling some class's 'main()' at some later time. > Thanks for the concept correction. Hopefully, it'll stick now :) Read the Java tutorials. They explain constructors vs. methods and such concepts. -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
why does this work? dkoleary <dkoleary@olearycomputers.com> - 2012-08-08 10:30 -0700
Re: why does this work? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-08 10:38 -0700
Re: why does this work? dkoleary <dkoleary@olearycomputers.com> - 2012-08-08 11:39 -0700
Re: why does this work? Lew <lewbloch@gmail.com> - 2012-08-08 17:33 -0700
Re: why does this work? Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-08 14:03 -0400
Re: why does this work? Roedy Green <see_website@mindprod.com.invalid> - 2012-08-09 02:41 -0700
Re: why does this work? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-08-09 20:17 +0000
csiph-web