摘要:
JDK 8之前日期和时间的API测试 1、System类中的currentTimeMillis() @Test public void test1(){ long time = System.currentTimeMillis(); //返回当前时间与1970年1月1日0时0分0秒之间以毫秒为单位的 阅读全文
posted @ 2021-06-07 16:31
koito
阅读(54)
评论(0)
推荐(0)
摘要:
String、StringBuffer、StringBuilder三者的异同? String:不可变的字符序列;底层使用char[]存储; StringBuffer:可变的字符序列;线程安全的,效率低;底层使用char[]存储; StringBuilder:可变的字符序列;jdk5.0新增的,线程不 阅读全文
posted @ 2021-06-07 00:02
koito
阅读(53)
评论(0)
推荐(0)

浙公网安备 33010602011771号