mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-25 02:27:10 +08:00
简单的修改一些小问题
This commit is contained in:
parent
6254014629
commit
ce934899f1
@ -312,6 +312,10 @@ Markdown 格式参考:[Github Markdown格式](https://guides.github.com/featur
|
||||
<a href="https://github.com/fanchenggang">
|
||||
<img src="https://avatars2.githubusercontent.com/u/8225921?s=460&v=4" width="45px">
|
||||
</a>
|
||||
<a href="https://github.com/Rustin-Liu">
|
||||
<img src="https://avatars2.githubusercontent.com/u/29879298?s=400&v=4" width="45px">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/ipofss">
|
||||
<img src="https://avatars1.githubusercontent.com/u/5917359?s=460&v=4" width="45px"></a>
|
||||
<a href="https://github.com/Gene1994">
|
||||
|
@ -78,7 +78,7 @@ num2 = 20
|
||||
|
||||

|
||||
|
||||
array 被初始化 arr 的拷贝也就是一个对象的引用,也就是说 array 和 arr 指向的时同一个数组对象。 因此,外部对引用对象的改变会反映到所对应的对象上。
|
||||
array 被初始化 arr 的拷贝也就是一个对象的引用,也就是说 array 和 arr 指向的是同一个数组对象。 因此,外部对引用对象的改变会反映到所对应的对象上。
|
||||
|
||||
|
||||
**通过 example2 我们已经看到,实现一个改变对象参数状态的方法并不是一件难事。理由很简单,方法得到的是对象引用的拷贝,对象引用及其他的拷贝同时引用同一个对象。**
|
||||
|
@ -417,8 +417,8 @@ final关键字主要用在三个地方:变量、方法、类。
|
||||
|
||||
### Throwable类常用方法
|
||||
|
||||
- **public string getMessage()**:返回异常发生时的详细信息
|
||||
- **public string toString()**:返回异常发生时的简要描述
|
||||
- **public string getMessage()**:返回异常发生时的简要描述
|
||||
- **public string toString()**:返回异常发生时的详细信息
|
||||
- **public string getLocalizedMessage()**:返回异常对象的本地化信息。使用Throwable的子类覆盖这个方法,可以声称本地化信息。如果子类没有覆盖该方法,则该方法返回的信息与getMessage()返回的结果相同
|
||||
- **public void printStackTrace()**:在控制台上打印Throwable对象封装的异常信息
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user