The below program demonstrates how to clone an object. In the below program x1,x2 are two objects of class TestClone1 which implements cloneable.The x1 object is clone and assigned to x2 object. Run It Now!
A simple java application that asks you to input your email id and checks it to tell you that the entered mail is valid or not.
P.S please download the code and try running it on your system, isn't