public class MyClass {
int id;
public static void main(String[] args) throws Exception {
MyClass mc = new MyClass();
mc.id=10;
System.out.println(mc.clone().id);
}
}
If you want to solve the questions together with the experts and understand the concepts better, please contact us using the contact form or WhatsApp numbers. Selected people get to do that without any additional charges.