File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Question on Prototype pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Question on Prototype pattern" Watch "Question on Prototype pattern" New topic

Question on Prototype pattern

Sub swamy
Ranch Hand

Joined: Oct 02, 2002
Posts: 121
Went through a couple of links regarding Prototype pattern. The following is my understanding

1) It can only be used when the shallow copy of the object would be sufficient - dont we need to have a complete copy of the object in most cases.

2) Whereever we use Cloneable with a suitable Abstract/Concrete, would that become Prototype ?
It is sorta covered in the JavaRanch Style Guide.
subject: Question on Prototype pattern
Similar Threads
Aggregation and Composition
why clone() ?
Prototype Java Design Pattern
Simple Pattern Question
Confusion regarding which pattern!