top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

what are the design pattern avaliable in java?

+2 votes
458 views
what are the design pattern avaliable in java?
posted Dec 14, 2013 by Prasad

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Looks that your question is not clear to me, MVC itself is a design pattern. Having said that please have a look at the following link http://web.archive.org/web/20110622110429/http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html

Else provide more details about your problem...

1 Answer

0 votes

Pattern & Description
1. Creational Patterns
These design patterns provides way to create objects while hiding the creation logic, rather than instantiating objects directly using new opreator. This gives program more flexibility in deciding which objects need to be created for a given use case.
2. Structural Patterns
These design patterns concern class and object composition. Concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalities.
3. Behavioral Patterns
These design patterns are specifically concerned with communication between objects.
4. J2EE Patterns
These design patterns are specifically concerned with the presentation tier. These patterns are identified by Sun Java Center.

First 3 design patterns are common for all OO Programming. Also there are several further types for J2ee design.
a. Factory Pattern
b. Abstract Factory Pattern
c. Singleton Pattern
d. Builder Pattern
e. Prototype Pattern
f. Adapter Pattern
g. Bridge Pattern
h. Composite Pattern
i. Proxy Pattern
j. Flyweight Pattern

answer Dec 18, 2013 by Satyabrata Mahapatra
Similar Questions
+2 votes

I create a class named ErrorUtil that each Package has a cl1ass named Error that inherited from ErrorUtil. All Exception and Logical Error catch at these class.

Is my pattern suitable or Not? Is there any pattern be better?

...