User-submitted Design Patterns Projects

80
1875 reads
Sharon's picture

Submitted by

Sharon
Proxy Pattern
This example demonstrates Proxy Pattern in java.Proxy Pattern provide a “Placeholder” for an object to control references to it.
Run It Now!
73
1385 reads
CrazyCoder's picture

Submitted by

CrazyCoder
Singleton Early Instatiation
This example demonstrates lazy instantiation using double locking machanism.In this example the singleton instance is created when the getInstance() method is called for the first time.
Run It Now!
71
2086 reads
Rohan's picture

Submitted by

Rohan
Roman Numeral Converter
This example demonstrates Roman Numeral Converter in java.The classical example fot the interpreter pattern is the one of interpreting the roman numerals.
Run It Now!
71
1257 reads
Praveen's picture

Submitted by

Praveen
Builder Pattern
This example demonstrates Builder Pattern in java. The Builder pattern defines an instance for creating an object but letting subclasses decide which class to instantiate and Allows a finer control o
Run It Now!
65
1330 reads
Rohan's picture

Submitted by

Rohan
Prototype
This example demonstrates prototype in java.prototype Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
Run It Now!
60
2146 reads
Sharon's picture

Submitted by

Sharon
Decorator pattern
This example demonstrates Decorator Pattern in java.Decorator Pattern add additional responsibilities dynamically to an object.
Run It Now!
57
1501 reads
ModCool's picture

Submitted by

ModCool
AbstractFactory
This example demonstrates Abstract Factory pattern. In this example AbstractFactory declares a interface for operations that create abstract products.ConcreteFactory implements operations to create c
Run It Now!
55
1625 reads
Sharon's picture

Submitted by

Sharon
Flyweight Pattern
This example demonstrates Flyweight Pattern War-game in java. The intent of this pattern is to use sharing to support a large number of objects that have part of their internal state in common where
Run It Now!
50
1311 reads
ModCool's picture

Submitted by

ModCool
Singleton lazy Instatiation
this example demonstrates lazy instantiation using double locking machanism.In this example the singleton instance is created when the getInstance() method is called for the first time.
Run It Now!
49
1785 reads
Sharon's picture

Submitted by

Sharon
Adapter Pattern
This example demonstrates Adaptor Pattern in java.Adaptor Pattern Convert the interface of a class into another interface clients expect.
Run It Now!
Make & share a project and showcase your talent to the world!