Organizational Research By

Surprising Reserch Topic

Java Design Patterns


Design Patterns in Java
 
A design pattern is a well-proved solution for solving the specific problem/task.
 
Design patterns are programming language independent strategies for solving the common object-oriented design problems. That means, a design pattern represents an idea, not a particular implementation.
 
By using the design patterns you can make your code more flexible, reusable and maintainable. It is the most important part because java internally follows design patterns.
Understanding the problem without using Design Patterns
 
Now, a question will be arising in your mind what kind of specific problem? Let me explain by an example:
 
Problem Given:
Suppose you want to create a class for which only a single instance (or object) should be created and that single object can be used by all other classes.
 
Solution:
Singleton design pattern is the best solution of above specific problem. So, every design pattern has some specification or set of rules for solving the problems. What are those specifications, you will see later in the types of design patterns.
 
Advantage of design pattern
 
  1.     They are reusable in multiple projects.
  2.     They provide the solutions that help to define the system architecture.
  3.     They capture the software engineering experiences.
  4.     They provide transparency to the design of an application.
  5.     They are well-proved and testified solutions since they have been built upon the knowledge and experience of expert software developers.
  6.     Design patterns don't guarantee an absolute solution to a problem. They provide clarity to the system architecture and the possibility of building a better system.
 
 
asked Oct 2, 2013 in Java Design Patterns by rajesh
0 votes
76 views



Related Hot Questions



Government Jobs Opening


...