import java.io.*;
import java.lang.*;
import java.util.*;
class emp implements Cloneable
{
int salary;
String name;
public emp(String n,int sal)
{
name=n;
salary=sal;
}
public void display()
{
System.out.println("name is: "+name);
System.out.println("salary is : "+salary);
}
public Object clone()
{
try
{
return super.clone();
}
catch(Exception e)
{
return null;
}
}
}
class clone
{
public static void main(String args[])
{
emp e=new emp("karthick",900);
emp e1=new emp("john",200);
e.display();
e1.display();
}
}

OUTPUT: