An overridden clone() method of java.lang.Object class is available to all arrays.
Where is this method overridden for arrays?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is defined by the JLS 10.7:
Where and how it is overriden is implementation specific. For HotSpot for example, you can find it here at line 539 and following. If you drill down you will see that it calls a platform dependent method. For Windows-x86, for example, the
pd_conjoint_jlongs_atomicmethod is located here line 97 and uses assembly code.