• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
君子以自强不息
Hello World!
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页

2020年7月1日

局部变量与类变量的赋值与使用
摘要: 局部变量与类变量的赋值与使用 现象 public class Main { // 类变量 public static int classVariable; public static void main(String[] args) { // 局部变量 int localVariables; Sys 阅读全文
posted @ 2020-07-01 08:37 Hello_xzy_World 阅读(541) 评论(0) 推荐(0)
 
 

2020年6月30日

整理树形结构数据
摘要: 整理树形结构数据 树形结构是一种常见的数据组织结构: 今天恰好需要完成一个接口,将数据组织长树形结构,下面是简化的代码: import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; im 阅读全文
posted @ 2020-06-30 19:21 Hello_xzy_World 阅读(351) 评论(0) 推荐(0)
 
 

2020年6月26日

数组定义与类的初始化
摘要: 数组定义与类的初始化 SuperClass类: public class SuperClass { public static String staticVariable = "staticVariable"; public static final String STATIC_CONSTANT = 阅读全文
posted @ 2020-06-26 14:02 Hello_xzy_World 阅读(280) 评论(0) 推荐(0)
 
 

2020年6月24日

访问类的静态属性与类的初始化
摘要: 访问类的静态属性与类的加载 1. 访问类的静态变量 现有SuperClass类,其源码如下: public class SuperClass { public static String staticVariable = "staticVariable"; public static final S 阅读全文
posted @ 2020-06-24 22:34 Hello_xzy_World 阅读(392) 评论(0) 推荐(0)
 
 

2020年6月23日

new关键字与类加载
摘要: new关键字与类加载 验证 现有以SuperClass类,其源码如下: public class SuperClass { public static String staticVariable = "hello "; public static final String STATIC_CONSTA 阅读全文
posted @ 2020-06-23 21:01 Hello_xzy_World 阅读(211) 评论(0) 推荐(0)
 
类加载时机说明
摘要: 类加载时机说明 类的生命周期 类从被加载到虚拟机内存开始,到卸载出内存位置,它的整个生命周期包含7个阶段:加载(Loading)、验证(Verification)、准备(Preparation)、解析(Resolution)、初始化(Initialization)、使用(Using)、卸载(Unlo 阅读全文
posted @ 2020-06-23 20:33 Hello_xzy_World 阅读(234) 评论(0) 推荐(0)
 
 

2020年6月19日

虚拟机类加载机制概述
摘要: 虚拟机类加载机制概述 “代码编译的结果从本地机器码转变为字节码,是存储格式发展的一小步,却是编程语言发展的一大步。” 什么是虚拟机的类加载机制? Class文件中存储的各种关于类的描述信息,需要加载到虚拟机中才能运行和使用。 这里所说的“Class文件”指的是一串二进制的字节流,并不仅仅指.clas 阅读全文
posted @ 2020-06-19 19:59 Hello_xzy_World 阅读(155) 评论(0) 推荐(0)
 
 

2020年6月12日

Integer对象两种创建方式的比较
摘要: Integer对象两种创建方式的比较 先看一段代码: public class Main { public static void main(String[] args) { Integer i1 = 6; Integer i2 = 6; Integer i3 = new Integer(6); I 阅读全文
posted @ 2020-06-12 09:08 Hello_xzy_World 阅读(281) 评论(0) 推荐(0)
 
 

2020年6月10日

Class文件版本号
摘要: Class文件版本号 表1 Class文件格式 类型 名称 数量 u4 magic 1 u2 minor_version 1 u2 major_version 1 u2 constant_pool_count 1 cp_info constant_pool constant_pool_count - 阅读全文
posted @ 2020-06-10 18:29 Hello_xzy_World 阅读(613) 评论(0) 推荐(0)
 
group by、group_concat()、if()
摘要: group by、group_concat()、if() 现有一培训课程表,表结构如下: 字段名 类型 长度 主键 备注 id varchar 32 √ trainName varchar 255 培训课程名称 insideTeacher varchar 255 内部讲师姓名 outsideTeac 阅读全文
posted @ 2020-06-10 18:19 Hello_xzy_World 阅读(572) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3