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


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

Re: why does this work?

From dkoleary <dkoleary@olearycomputers.com>
Newsgroups comp.lang.java.programmer
Subject Re: why does this work?
Date 2012-08-08 11:39 -0700
Organization http://groups.google.com
Message-ID <b36aec4c-169d-4b5c-8e0d-168160939323@googlegroups.com> (permalink)
References <aa374d3f-d1d4-43e0-be0a-972b80316255@googlegroups.com> <puxUr.3847$l63.2567@newsfe20.iad>

Show all headers | View raw


On Wednesday, August 8, 2012 12:38:27 PM UTC-5, Daniel Pitts wrote:
> new XCopy() creates a new instance of the XCopy class, which executes 
> Constructors.  main isn't executed again because of this.  main is only 
> automatically executed by the JVM on start-up, once.
> 

Got it... I do remember reading that somewhere else.  main only gets executed once.  

Thanks for the concept correction.  Hopefully, it'll stick now :)

Doug O'Leary

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