Consider the code below:
DummyBean dum = new DummyBean(); dum.setDummy(\"foo\"); System.out.println(dum.getDummy()); // prints \'foo\' DummyBean dumtwo = du
You can try to implement Cloneable and use the clone() method; however, if you use the clone method you should - by standard - ALWAYS override Object's public Object clone() method.
Cloneable
clone()
Object
public Object clone()