随笔分类 - Java
摘要:让普通变量 long = 一个空的Long对象 public class UnboxingNpe { private static int add(int x, int y) { return x + y; } private static boolean compare(long x, long
阅读全文
摘要:使用java7的新api try(){}; 普通做法 private String traditionalTryCatch() throws IOException { // 1. 单一资源的关闭 // String line = null; // BufferedReader br = new B
阅读全文
摘要:GenericServlet继承三个接口,HttpServerlet继承GenericServlet
阅读全文