new Date()和System.currentTimeMillis()性能之比较

来源:互联网 发布:阿里云ip 编辑:程序博客网 时间:2024/06/05 16:30
 通过观察源码发现:

  public Date()

  {

    this(System.currentTimeMillis());

  }
so:
date类是 System.currentTimeMillis()的一个封装,势必性能会有所降低

阅读全文
0 0
原创粉丝点击