The below example demonstrates how to clone an object in java. The below example creates two objects(p,q) of Class Point. The object p is cloned and assigned to object q. Run It Now!
The below example demonstrates how to download single .mp3 file in Struts 2. In this example we are downloading single .mp3 file from the server with the help of FileDownloadAction action.
This example demonstrates Composite Pattern in java.
The intent of this pattern is to compose objects into tree structures to represent part-whole hierarchies.
Run It Now!
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!