Thursday, 21 April 2016

Where is clone method implemented in Java

I have read that it is a method of Object class and while cloning any object we implement Cloneable interface and then call super.clone()



But when I opened the Object class, all I could see was the method declaration and not it's definition. Where is this method defined?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...