Exam (elaborations)
Java Certification Exam Questions And CORRECT Answers
- Course
- Institution
If you overwrite clone(), which 3 rules must this method obey?1) the new object should be new: memory address should differ 2) Both should be an object of the same class 3) Both should be in the same state: ().equals(a) == true Why do we need to implement the Clonable interface?At runtime it...
[Show more]