What is design pattern and there types?
Answers were Sorted based on User's Feedback
Answer / rsn ben
Design patterns are patterns used to manage/form/construct 'objects'.According to Gang of Four book,originally 23 design patterns are there.
Examples:
Singleton,Decorator,Template method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / s swain
A design pattern is a well described solution to a common software problem.
Some of the benefits of using design patterns are:
Design Patterns are already defined and provides industry standard approach to solve a recurring problem, so it saves time Using design patterns promotes reusability It helps in reducing total cost of ownership (TCO) of the software product.it makes our code easy to understand and debug. It leads to faster development
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the performance implications of interfaces over abstract classes?
What is an immutable class?
What is the access scope of protected access specifier?
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one?
When the constructor of a class is invoked?
How many unicode characters are there?
What is aggregation?
Can we have static methods in an interface?
What is an escape character in java?
What are the various access specifiers for java classes?
Which collection allows duplicate values in java?
Why do we need to override equals() and hascode() method of object class?