Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #17441

Re: why does this work?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: why does this work?
Date Wed, 8 Aug 2012 17:33:54 -0700 (PDT)
Organization http://groups.google.com
Lines 14
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>
NNTP-Posting-Host 69.28.149.29
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1344472435 20447 127.0.0.1 (9 Aug 2012 00:33:55 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Thu, 9 Aug 2012 00:33:55 +0000 (UTC)
In-Reply-To <b36aec4c-169d-4b5c-8e0d-168160939323@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
User-Agent G2/1.0
X-Received-Bytes 1609
Xref csiph.com comp.lang.java.programmer:17441

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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