Which of the following is not the difference between Singleton and Static class ( Class with static members only ) ?<br/><br/> a. Only one object can be created for Singleton class whereas No objects are created for static class. <br/> b. Singleton class instance is initiated using new keyword whereas static class instance is created using static method.<br/> c. Singleton class can be serialized whereas Static class cannot be.<br/> d. Singleton Class can participate in runtime Polymorphism whereas Static class cannot.<br/>
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. Which of the following is not the difference between Singleton and Static class ( Class with static members only ) ?

a. Only one object can be created for Singleton class whereas No objects are created for static class.
b. Singleton class instance is initiated using new keyword whereas static class instance is created using static method.
c. Singleton class can be serialized whereas Static class cannot be.
d. Singleton Class can participate in runtime Polymorphism whereas Static class cannot.
Ans. Singleton class instance is initiated using new keyword whereas static class instance is created using static method.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   oops   singleton   design pattern   static class


Related Questions

 What is Dependency Injection or IOC ( Inversion of Control ) ?
  What is MVC ?
  What are the Wrapper classes available for primitive types ?
  Difference between Factory and Abstract Factory Design Pattern ?
  Difference between Factory and Builder Design Pattern ?
  Difference between Builder and Composite ?
  Difference between Factory and Strategy Design Pattern ?
 What is the difference between subject and observable ?
 What are the disadvantages of Design Patterns ?
  What Design pattern Wrapper Classes implement ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: