摘要: 以下Java程序运行的结果是: public class Tester{ public static void main(String[] args){ Integer var1=new Integer(1); Integer var2=var1; doSomething(var2); System 阅读全文
posted @ 2021-08-23 17:44 fridays 阅读(469) 评论(0) 推荐(0)
摘要: 直接看代码: public class Demo { public static void main(String[] args) { String s1 = "hello"; String s2 = s1.substring(0,2); System.out.println(s1==s2);//f 阅读全文
posted @ 2021-07-27 10:07 fridays 阅读(287) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/2090278/202108/2090278-20210803142912385-1709007308.jpg) 阅读全文
posted @ 2021-07-12 10:52 fridays 阅读(65) 评论(0) 推荐(0)
摘要: 模板方法模式 阅读全文
posted @ 2020-08-09 09:54 fridays 阅读(42) 评论(0) 推荐(0)
摘要: 父类引用指向子类对象时候的一些注意点 首先看一段代码: public class Father { static int b=7; int a=5; public void say(){ System.out.println("父亲say"); } public void write(){ Syst 阅读全文
posted @ 2020-08-09 09:44 fridays 阅读(184) 评论(0) 推荐(0)
摘要: ### 阅读全文
posted @ 2020-08-07 22:04 fridays 阅读(49) 评论(0) 推荐(0)
摘要: Map不是Collection的子接口,而list和set均是Collection的子接口 阅读全文
posted @ 2020-08-04 23:12 fridays 阅读(144) 评论(0) 推荐(0)
摘要: 答案:ThreadLocal 阅读全文
posted @ 2020-07-29 23:05 fridays 阅读(304) 评论(0) 推荐(0)
摘要: 报错原因,mapper的版本太低 解决办法:把版本改高一点即可 阅读全文
posted @ 2020-07-27 23:01 fridays 阅读(2502) 评论(0) 推荐(0)
摘要: 答案:InputStreamReader。因为InputStreamReader含有InputStreamReader(InputStream in, CharsetDecoder dec)构造方法,该构造方法创建使用给定字符集解码器的 InputStreamReader。 阅读全文
posted @ 2020-07-24 00:01 fridays 阅读(258) 评论(0) 推荐(0)