Results 1 to 2 of 2

Thread: Static and Singleton Class

  1. #1
    Geek_Guest
    Guest

    Static and Singleton Class

    Whats the difference between a static class and a singleton class. One which i know is static is initialized at run time while singleton class can be initialized dynamically though both static and singleton classes are of the same use. Any other difference is appreciated.

    Question asked by visitor swanand


  2. #2
    Contributing Member
    Join Date
    Oct 2007
    Answers
    88

    Smile Re: Static and Singleton Class

    Quote Originally Posted by Geek_Guest View Post
    Whats the difference between a static class and a singleton class. One which i know is static is initialized at run time while singleton class can be initialized dynamically though both static and singleton classes are of the same use. Any other difference is appreciated.

    Question asked by visitor swanand
    singleton classes you create one object of the class and use that throughout the application. In case of static class you do not create any object but call any methods referencing through class name.[this is my guess only]


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