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 Prototype Pattern? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Prototype Pattern?" Watch "Prototype Pattern?" New topic

Prototype Pattern?

Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
Does anyone know of an example where copying an object is more efficient than creating a new object?
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Clone an array to create a copy of itself.

A good workman is known by his tools.
subject: Prototype Pattern?
It's not a secret anymore!