Java does not support a copy constructor like C++. Moreover, there are some concepts that work like copy constructor in java. We can copy the value of one object to another object. The ways you can do:
Example: We have a class of employees.
employees(int i, String name)
{
this.i =i;
this.name=name;
}
Example: employee(employee e)
{
i = e.i;
name = e.name;
}