2018年1月8日

NIO buffer 缓冲区 API

摘要: package bhz.nio.test; import java.nio.IntBuffer; public class TestBuffer { public static void main(String[] args) { // 1 基本操作 //创建指定长度的缓冲区 IntBuffer b 阅读全文

posted @ 2018-01-08 16:15 小鱼儿灬 阅读(247) 评论(0) 推荐(0) 编辑

Java技术——你真的了解String类的intern()方法吗

摘要: 楼主说一下 - 重点: intern() 这个api 只有在 new String("SEU")+ new String("Calvin"); 这种情况下 有个坑 (jdk.16 和1.7 有改动),其他普通情况下 比如: String str1 = new String("SEU"); str.i 阅读全文

posted @ 2018-01-08 16:00 小鱼儿灬 阅读(1773) 评论(0) 推荐(0) 编辑

导航