摘要:
第一轮 1. 笔试 30 mins 一共六道大题,前两题有4-5个小题。 第一道大题主要是考察Java Collections: a. LinkedList和ArrayList的区别 b. Set和List的区别 c. equals方法和hashCode方法的区别与联系 d. LinkedList更 阅读全文
摘要:
之前测试遇到了"too many open files"的问题。ulimit -Hn 查了下发现server上最大open file数是4096。写了个简单的脚本检测发现进程创建的fd个数在不断增加,8分钟之后达到上限然后程序报错,其中绝大部分fd都是关于socket的。 在server上安装lso 阅读全文
摘要:
References [1] https://blog.csdn.net/u011974987/article/details/46866229 Java provides two different types/classes of Reference Objects: strong and we 阅读全文
摘要:
堆的形状是一颗完全二叉树 public class B { public static B t1 = new B(); public static B t2 = new B(); { System.out.println("构造块"); } void hi () { System.out.print 阅读全文
摘要:
Reference: [1] https://stackoverflow.com/questions/309424/read-convert-an-inputstream-to-a-string Ways to convert an InputStream to a String: Using IO 阅读全文