Why is’ invokespecial ‘used to call “methods” in Java?

Why is invokespecial used to call methods in < init > java?

I've read it in many places, but I can't understand the perfect reason?

Any help will be greatly appreciated

Solution

Start here:

Also start here:

The second reference applies best to your problem because we know that calling constructor (< init >) methods always has a static binding

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>