• Post Reply Bookmark Topic Watch Topic
  • New Topic

Copy one object to another  RSS feed

 
devaki hanumante
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a object of a table named mert in my project.(objMERT)
Now i want to copy all the values of this object to another object say objMERT1.
How do I go about that in JAVA.

Regards,
Devaki
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the clone() method?
Give your class a copy constructor?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!