上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 编译期常量指的就是程序在编译时就能确定这个常量的具体值 非编译期常量就是程序在运行时才能确定常量的值,因此也称为运行时常量 //编译期常量 final int i = 4; final String str = "dasd"; // 非编译期常量 final String str1 = new St 阅读全文
posted @ 2022-07-21 22:27 无极是一种信仰 阅读(112) 评论(0) 推荐(0)
摘要: String类不可变:缓存,安全,线程安全,性能 substring jdk1.6 String(int offset, int count, char value[]) { this.value = value; this.offset = offset; this.count = count; 阅读全文
posted @ 2022-07-21 20:34 无极是一种信仰 阅读(43) 评论(0) 推荐(0)
摘要: 自动装拆箱原理: Integer integer=1; //装箱 int i=integer; //拆箱 反编译 Integer integer=Integer.valueOf(1); int i=integer.intValue(); 自动装拆箱场景: 放入集合类: List<Integer> l 阅读全文
posted @ 2022-07-21 20:09 无极是一种信仰 阅读(40) 评论(0) 推荐(0)
摘要: 什么是平台无关性:一次编译,到处执行 .java文件->前端编译->.class文件(2进制,jvm能识别,操作系统无法识别)->后端编译->2进制文件(操作系统能识别) 前端编译:javac编译.java文件,需要jdk 后端编译:jvm编译.class文件,不同的jvm适配不同的操作系统,将统一 阅读全文
posted @ 2022-07-20 22:03 无极是一种信仰 阅读(40) 评论(0) 推荐(0)
摘要: 访问修饰符:public protected default private 修饰类时:只有public和default,public全局能访问,default只有在同一个包下能访问 修饰变量与方法时:public全局能访问,protected同一个包下或子类能访问,default同一个包下能访问, 阅读全文
posted @ 2022-07-20 19:57 无极是一种信仰 阅读(30) 评论(0) 推荐(0)
摘要: 什么是面向过程? 以过程为中心的编程思想,自顶而下,把问题分解成一个一个步骤,每个步骤用函数实现,依次调用即可,代码流程话,执行起来效率很高, 但是代码重用性低,扩展能力差,后期维护困难。 什么是面向对象? 强调可重复性,将问题分解成一个一个步骤,对每个步骤进行相应的抽象,形成对象,通过不同对象之间 阅读全文
posted @ 2022-07-20 19:48 无极是一种信仰 阅读(80) 评论(0) 推荐(0)
摘要: Spring 工厂何时创建对象? 当scope="singleton":表示只创建一个对象(单例),Spring 工厂(IoC 容器)创建的同时,创建对象。当scope="prototype":Spring 工厂在获取对象 ctx.getBean("xxx") 的同时,创建对象。 生命周期:http 阅读全文
posted @ 2022-07-19 17:49 无极是一种信仰 阅读(64) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/W31003/article/details/125220998 阅读全文
posted @ 2022-07-18 20:31 无极是一种信仰 阅读(18) 评论(2) 推荐(0)
摘要: https://blog.csdn.net/weixin_45203607/article/details/124369349 阅读全文
posted @ 2022-07-17 23:21 无极是一种信仰 阅读(173) 评论(0) 推荐(0)
摘要: 目录: C:\work\es 放 kibana和es C:\work\1\es 放 head-master 前端 put /test1/_doc/1{ "name":"孙佳锦" } 阅读全文
posted @ 2022-07-16 14:10 无极是一种信仰 阅读(28) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页