This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Question on Prototype pattern" Watch "Question on Prototype pattern" New topic
Author

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 ?
 
rocket mass heater kickstarter
 
subject: Question on Prototype pattern