0 | |
By: [email protected] On: Thu Mar 02 10:22:27 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
0 | |
By: [email protected] On: Thu Mar 02 13:43:56 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
0 | |
By: [email protected] On: Thu Mar 02 13:45:45 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
0 | |
By: [email protected] On: Thu Mar 02 20:35:32 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
Cloning in java means creating a copy of the Object and returning it The method used is:- protected Object clone() Ex import java.util.Date; class Sample { public static void main(String ar[]) throws CloneNotSupportedException { //create a Date, which is an object Date d=new Date(); //clone object d into d1 Date d1=(Date) d.clone(); System.out.println(d); System.out.println(d1); } } | 0 |
By: [email protected] On: Fri Mar 03 10:24:11 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
import java.util.Date; class Sample { public static void main(String ar[]) throws CloneNotSupportedException { //create a Date, which is an object Date d=new Date(); //clone object d into d1 Date d1=(Date) d.clone(); System.out.println(d); System.out.println(d1); } } | 0 |
By: [email protected] On: Fri Mar 03 10:24:43 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
0 | |
By: [email protected] On: Thu Mar 09 20:45:17 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
0 | |
By: [email protected] On: Fri Mar 10 19:31:58 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |