简体   繁体   English

为什么System.arraycopy没有驼峰?

[英]Why is System.arraycopy not camelCased?

Java's standard libraries seem to use camelCase for method names. Java的标准库似乎使用camelCase作为方法名称。 Native functions like nanoTime() are no exceptions. nanoTime()这样的本函数也不例外。

If so, why is System.arraycopy not camelCased? 如果是这样,为什么System.arraycopy没有被驼峰化?

Is there something special about System.arraycopy ? System.arraycopy有什么特别之处吗?

It's been in Java for before v1.0 was released - so my guess is that it predates the naming conventions, and it was missed in a sweep of the API when the naming conventions were decided. 它已经在Java中的1.0版本发布之前-所以我的猜测是,它早于命名约定,它是在API的横扫无缘时的命名约定决定

(In other news, NullPointerException should be called NullReferenceException .) (在其他新闻中, NullPointerException应该称为NullReferenceException 。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM