Every array overrides one of methods defined in class Object. Which one?
Explanation
Method clone is public in arrays, because arrays classes implement Cloneable. It uses the default implementation of clone() from class Object, so you will receive a shallow copy of array.
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback