随笔分类 -  Java

摘要:让普通变量 long = 一个空的Long对象 public class UnboxingNpe { private static int add(int x, int y) { return x + y; } private static boolean compare(long x, long 阅读全文
posted @ 2024-09-08 00:25 liang302 阅读(16) 评论(0) 推荐(0) 编辑
摘要:使用java7的新api try(){}; 普通做法 private String traditionalTryCatch() throws IOException { // 1. 单一资源的关闭 // String line = null; // BufferedReader br = new B 阅读全文
posted @ 2024-09-08 00:11 liang302 阅读(4) 评论(0) 推荐(0) 编辑
摘要:GenericServlet继承三个接口,HttpServerlet继承GenericServlet 阅读全文
posted @ 2024-04-29 22:45 liang302 阅读(15) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
主题色彩