Why is the string method substring () not in camelCase in Java?

According to Java standards, we should follow camelCase But why is the string method substring () not in camelCase? Is this for any particular reason or is it a mistake from the first few days?

Solution

CamelCase is used to separate words. Substring is not used as a substring, but as a substring... So it follows the Convention

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
分享
二维码
< <上一篇
下一篇>>