摘要:
io异常的处理 old style 这个代码冗长 并且 如果最后close失败 最终会抛出final块中的异常,无论try捕获的异常是否更有 意义。 JDK7 try with resouces This is the try with resources construct. The FileIn 阅读全文
摘要:
死锁 死锁:等待形成一个循环 操作系统中经典问题: 哲学进餐问题 package Philosopher; public class Chopstick { private boolean taken = false; public synchronized void take() throws I 阅读全文