The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

then why use constructors

Posted by saddysan on June 12, 2001 at 1:17 PM

Sir,
what you are saying could be right but my question was that as a programmer why should we use init() rather than default constructor. is there any difference or are they one and the same thing.
saddy

> > Hello friends,
> > I am having a small doubt, why we need init() method to initialize applets & servlets although we can do the same through constructors.

> > thanx
> > saddy
> I am not a java guru but here's my opinion.
> init() like start() and stop() are standardized methods to help browser know how to initialize, start and stop a applet. This way ease the browser life.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us