Open rkpatra201 opened 7 months ago
cc @Subhransupanda2000 / @Ansu-s
class Employee{ String name; Float salary; }
https://www.infoworld.com/article/2077578/how-to-copy-objects-in-java-shallow-copy-and-deep-copy.html https://www.studytonight.com/java/this-keyword-in-java.php#google_vignette
Question:
class Address{ String city; String pinCode; Address(String city, String pinCode){ this.city = city; this.pinCode = pinCode; } } class Person{ String name; int age; Address address; Person(String name, int age, Address address){ this.name = name; this.age = age; this.address = address; } }
perform swallow copy and deep copy on Person object
cc @Subhransupanda2000 / @Ansu-s updated the 1st May interview topic. Time 8pm - 8:30pm. As discussed interview will cover 29th, 30th, 1st may topics.
https://github.com/Subhransupanda2000/JAVA/pull/14
3rd May
cc @Subhransupanda2000 / @Ansu-s
2nd May 2024
1st May 2024
30th April 2024
29th April 2024
https://www.infoworld.com/article/2077578/how-to-copy-objects-in-java-shallow-copy-and-deep-copy.html https://www.studytonight.com/java/this-keyword-in-java.php#google_vignette
Question:
perform swallow copy and deep copy on Person object