1、String,StringBuffer,StringBuilder的区别 String:常量,final修饰; StringBuffer:字符串变量,线程安全,底层final修饰,不允许被继承,绝大部分方法做了同步处理(sychronized),toSring方法会进行对象缓存,减少复制开销; Read More
posted @ 2020-09-03 17:11 #夜藤 Views(116) Comments(0) Diggs(0)
jdbc_connection_string = "jdbc:mysql://localhost:3306/springboot?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true" Read More
posted @ 2020-05-07 16:33 #夜藤 Views(131) Comments(0) Diggs(0)
the java_home environment variable is not defined correctly This environment variable is needed to run this program NB: java_home should point to a jd Read More
posted @ 2020-04-29 15:14 #夜藤 Views(9114) Comments(0) Diggs(0)
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————— http://www.360doc.com/content/15/ Read More
posted @ 2020-04-28 14:57 #夜藤 Views(677) Comments(0) Diggs(0)
这样做是为了后期的维护。当软件全部编好了,测试好了,然后给用户装好了,但是过一段时间,用户用着不爽,他又让做软件的人改变一些功能,这样软件开发人员只需要改实现类里面的代码,也就是只用改一个包下代码,不用这个包改一下,那个包里的代码还要改。因为项目大了,代码就是成万上亿行。用了接口的话,就起了这个作用 Read More
posted @ 2020-04-27 21:39 #夜藤 Views(400) Comments(0) Diggs(0)
本文重点介绍在JAVA中类的声明。 一、定义 类可以理解为一个模版,它描述一类对象的行为和状态。 二、类声明语法 [修饰符] [static] [final] [abstract] [strictfp] class 类名 [extends 父类名] [implements 接口名] { [类体;]} Read More
posted @ 2020-04-13 10:43 #夜藤 Views(2210) Comments(0) Diggs(0)
MySQL drop/truncate/delete的用法 转载 https://www.cnblogs.com/accumulater/p/6077558.html Read More
posted @ 2020-03-31 11:26 #夜藤 Views(101) Comments(0) Diggs(0)
Java规定了main()方法必须是公共的,以便于外部程序对主方法的访问,因为程序都是从main()方法起始的,并且main()方法也必须是静态的。 首先,为什么要用public: 因为在运行程序时,jvm要调用main方法,但我们都应该知道jvm是一个软件并不是硬件,并且它与main方法所在的包是 Read More
posted @ 2020-03-09 10:01 #夜藤 Views(488) Comments(0) Diggs(0)