Results 1 to 2 of 2

Thread: Constructor in place of init() method

  1. #1
    Moderator
    Join Date
    Oct 2005
    Answers
    305

    Constructor in place of init() method

    Can we put costructor in place of init() method?

    Note : [This question was asked by badari, I am posting it in proper forum]


  2. #2
    Junior Member
    Join Date
    Jan 2008
    Answers
    11

    Re: Constructor in place of init() method

    no,
    we cant provide constructor in place of init(), because the serrvlet is executed ny container not by the JVM, container always seeks for init() and executes init() but not constructor()


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact