Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
dunwu committed Jan 24, 2024
1 parent 16ba514 commit 00f2ff7
Show file tree
Hide file tree
Showing 568 changed files with 21,890 additions and 12,210 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Java 开发环境
date: 2018-08-29 17:28:34
order: 00
categories:
- Java
- JavaSE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Java 基础语法特性
date: 2022-01-25 07:31:16
order: 01
categories:
- Java
- JavaSE
Expand Down Expand Up @@ -37,17 +38,17 @@ public class HelloWorld {

## 基本数据类型

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java基本数据类型.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java基本数据类型.svg)

> 👉 扩展阅读:[深入理解 Java 基本数据类型](https://dunwu.github.io/blog/pages/55d693/)
> 👉 扩展阅读:[深入理解 Java 基本数据类型](https://dunwu.github.io/waterdrop/pages/55d693/)
## 变量
## 变量和常量

Java 支持的变量类型有:

- `局部变量` - 类方法中的变量。
- `实例变量(也叫成员变量` - 类方法外的变量,不过没有 `static` 修饰。
- `类变量(也叫静态变量` - 类方法外的变量,用 `static` 修饰。
- `成员变量(也叫实例变量` - 类方法外的变量,不过没有 `static` 修饰。
- `静态变量(也叫类变量` - 类方法外的变量,用 `static` 修饰。

特性对比:

Expand All @@ -74,72 +75,72 @@ Java 支持的变量类型有:

## 数组

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java数组.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java数组.svg)

> 👉 扩展阅读:[深入理解 Java 数组](https://dunwu.github.io/blog/pages/155518/)
> 👉 扩展阅读:[深入理解 Java 数组](https://dunwu.github.io/waterdrop/pages/155518/)
## 枚举

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java枚举.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java枚举.svg)

> 👉 扩展阅读:[深入理解 Java 枚举](https://dunwu.github.io/blog/pages/979887/)
> 👉 扩展阅读:[深入理解 Java 枚举](https://dunwu.github.io/waterdrop/pages/979887/)
## 操作符

Java 中支持的操作符类型如下:

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java操作符.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java操作符.svg)

> 👉 扩展阅读:[Java 操作符](http://www.runoob.com/java/java-operators.html)
## 方法

![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/20220125072221.png)
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/20220125072221.png)

> 👉 扩展阅读:[深入理解 Java 方法](https://dunwu.github.io/blog/pages/7a3ffc/)
> 👉 扩展阅读:[深入理解 Java 方法](https://dunwu.github.io/waterdrop/pages/7a3ffc/)
## 控制语句

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java控制语句.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java控制语句.svg)

> 👉 扩展阅读:[Java 控制语句](https://dunwu.github.io/blog/pages/fb4f8c/)
> 👉 扩展阅读:[Java 控制语句](https://dunwu.github.io/waterdrop/pages/fb4f8c/)
## 异常

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java异常框架.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java异常框架.svg)

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java异常.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java异常.svg)

> 👉 扩展阅读:[深入理解 Java 异常](https://dunwu.github.io/blog/pages/37415c/)
> 👉 扩展阅读:[深入理解 Java 异常](https://dunwu.github.io/waterdrop/pages/37415c/)
## 泛型

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java泛型.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java泛型.svg)

> 👉 扩展阅读:[深入理解 Java 泛型](https://dunwu.github.io/blog/pages/33a820/)
> 👉 扩展阅读:[深入理解 Java 泛型](https://dunwu.github.io/waterdrop/pages/33a820/)
## 反射

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java反射.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java反射.svg)

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java代理.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java代理.svg)

> 👉 扩展阅读:[深入理解 Java 反射和动态代理](https://dunwu.github.io/blog/pages/0d066a/)
> 👉 扩展阅读:[深入理解 Java 反射和动态代理](https://dunwu.github.io/waterdrop/pages/0d066a/)
## 注解

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/注解简介.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/注解简介.svg)

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/元注解.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/元注解.svg)

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/内置注解.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/内置注解.svg)

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/自定义注解.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/自定义注解.svg)

> 👉 扩展阅读:[深入理解 Java 注解](https://dunwu.github.io/blog/pages/ecc011/)
> 👉 扩展阅读:[深入理解 Java 注解](https://dunwu.github.io/waterdrop/pages/ecc011/)
## 序列化

![img](https://raw.githubusercontent.com/dunwu/images/dev/cs/java/javacore/xmind/Java序列化.svg)
![img](https://raw.githubusercontent.com/dunwu/images/master/cs/java/javacore/xmind/Java序列化.svg)

> 👉 扩展阅读:[Java 序列化](https://dunwu.github.io/blog/pages/2b2f0f/)
> 👉 扩展阅读:[Java 序列化](https://dunwu.github.io/waterdrop/pages/2b2f0f/)
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 深入理解 Java 基本数据类型
date: 2019-05-06 15:02:02
order: 02
categories:
- Java
- JavaSE
Expand All @@ -14,7 +15,7 @@ permalink: /pages/55d693/

# 深入理解 Java 基本数据类型

![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/20220408172602.png)
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/20220408172602.png)

## 数据类型分类

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Java 面向对象
date: 2020-08-06 18:20:39
order: 03
categories:
- Java
- JavaSE
Expand All @@ -14,20 +15,20 @@ permalink: /pages/3e1661/

# Java 面向对象

> [Java 基本数据类型](docs/01.Java/01.JavaSE/01.基础特性/02.Java基本数据类型.md) 中我们了解 Java 中支持的基本数据类型(值类型)。本文开始讲解 Java 中重要的引用类型——类。
> [Java 基本数据类型](02.Java基本数据类型.md) 中我们了解 Java 中支持的基本数据类型(值类型)。本文开始讲解 Java 中重要的引用类型——类。
## 面向对象

每种编程语言,都有自己的操纵内存中元素的方式。

Java 中提供了[基本数据类型](https://dunwu.github.io/blog/pages/55d693/),但这还不能满足编写程序时,需要抽象更加复杂数据类型的需要。因此,Java 中,允许开发者通过类(类的机制下面会讲到)创建自定义类型。
Java 中提供了[基本数据类型](https://dunwu.github.io/waterdrop/pages/55d693/),但这还不能满足编写程序时,需要抽象更加复杂数据类型的需要。因此,Java 中,允许开发者通过类(类的机制下面会讲到)创建自定义类型。

有了自定义类型,那么数据类型自然会千变万化,所以,必须要有一定的机制,使得它们仍然保持一些必要的、通用的特性。

Java 世界有一句名言:一切皆为对象。这句话,你可能第一天学 Java 时,就听过了。这不仅仅是一句口号,也体现在 Java 的设计上。

- 首先,所有 Java 类都继承自 `Object` 类(从这个名字,就可见一斑)。
- 几乎所有 Java 对象初始化时,都要使用 `new` 创建对象([基本数据类型](https://dunwu.github.io/blog/pages/55d693/)、String、枚举特殊处理),对象存储在堆中。
- 几乎所有 Java 对象初始化时,都要使用 `new` 创建对象([基本数据类型](https://dunwu.github.io/waterdrop/pages/55d693/)、String、枚举特殊处理),对象存储在堆中。

```java
// 下面两
Expand Down Expand Up @@ -69,7 +70,7 @@ String s = new String("abc");

狗和鸟都是动物。如果将狗、鸟作为类,它们可以继承动物类。

![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/1552641712126.png)
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/1552641712126.png)

类的继承形式:

Expand Down Expand Up @@ -128,7 +129,7 @@ Java 中提供的基本数据类型,只能表示单一的数值,这用于数

类的形式如下:

![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/1552640231731.png)
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/1552640231731.png)

## 方法

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 深入理解 Java 方法
date: 2019-05-06 15:02:02
order: 04
categories:
- Java
- JavaSE
Expand Down Expand Up @@ -474,7 +475,7 @@ public class MethodOverloadDemo {

## 小结

![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/1553767582595.png)
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/1553767582595.png)

## 参考资料

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 深入理解 Java 数组
date: 2019-05-06 15:02:02
order: 05
categories:
- Java
- JavaSE
Expand Down Expand Up @@ -61,7 +62,7 @@ Java 数组在内存中的存储是这样的:

如下图所示:只有当 JVM 执行 `new String[]` 时,才会在堆中开辟相应的内存区域。数组对象 array 可以视为一个指针,指向这块内存的存储地址。

![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/1552473482942.png)
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/1552473482942.png)

## 声明数组

Expand Down Expand Up @@ -374,7 +375,7 @@ Java 中,提供了一个很有用的数组工具类:Arrays。
## 小结

![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/1553753908349.png)
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/1553753908349.png)

## 参考资料

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 深入理解 Java 枚举
date: 2019-05-06 15:02:02
order: 06
categories:
- Java
- JavaSE
Expand Down Expand Up @@ -657,7 +658,7 @@ public class EnumMapDemo {
## 小结

![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/1553002212154.png)
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/1553002212154.png)

## 参考资料

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Java 控制语句
date: 2020-10-17 19:13:25
order: 07
categories:
- Java
- JavaSE
Expand Down
Loading

0 comments on commit 00f2ff7

Please sign in to comment.