InterviewSolution
Saved Bookmarks
| 1. |
The obvious drawback of a singleton is that it introduces _____________ into the application.(a) Redundancies(b) Errors(c) Global State(d) ModulesI had been asked this question in an interview.I need to ask this question from JMock topic in division Testing with Mock Objects of JUnit |
|
Answer» CORRECT choice is (C) Global STATE Explanation: The global state object can be ACCESSED by anyone. |
|