File tree 3 files changed +7
-3
lines changed
essential-content-for-interview/MostCommonJavaInterviewQuestions
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,10 @@ Markdown 格式参考:[Github Markdown格式](https://guides.github.com/featur
312
312
<a href =" https://github.com/fanchenggang " >
313
313
<img src="https://avatars2.githubusercontent.com/u/8225921?s=460&v=4" width="45px">
314
314
</a >
315
+ <a href =" https://github.com/Rustin-Liu " >
316
+ <img src="https://avatars2.githubusercontent.com/u/29879298?s=400&v=4" width="45px">
317
+ </a >
318
+
315
319
<a href =" https://github.com/ipofss " >
316
320
<img src="https://avatars1.githubusercontent.com/u/5917359?s=460&v=4" width="45px"></a>
317
321
<a href =" https://github.com/Gene1994 " >
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ num2 = 20
78
78
79
79
![ example 2] ( http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-9-27/3825204.jpg )
80
80
81
- array 被初始化 arr 的拷贝也就是一个对象的引用,也就是说 array 和 arr 指向的时同一个数组对象 。 因此,外部对引用对象的改变会反映到所对应的对象上。
81
+ array 被初始化 arr 的拷贝也就是一个对象的引用,也就是说 array 和 arr 指向的是同一个数组对象 。 因此,外部对引用对象的改变会反映到所对应的对象上。
82
82
83
83
84
84
** 通过 example2 我们已经看到,实现一个改变对象参数状态的方法并不是一件难事。理由很简单,方法得到的是对象引用的拷贝,对象引用及其他的拷贝同时引用同一个对象。**
Original file line number Diff line number Diff line change @@ -417,8 +417,8 @@ final关键字主要用在三个地方:变量、方法、类。
417
417
418
418
### Throwable类常用方法
419
419
420
- - **public string getMessage ()**:返回异常发生时的详细信息
421
- - **public string toString ()**:返回异常发生时的简要描述
420
+ - **public string getMessage ()**:返回异常发生时的简要描述
421
+ - **public string toString ()**:返回异常发生时的详细信息
422
422
- **public string getLocalizedMessage ()**:返回异常对象的本地化信息。使用Throwable的子类覆盖这个方法,可以声称本地化信息。如果子类没有覆盖该方法,则该方法返回的信息与getMessage()返回的结果相同
423
423
- **public void printStackTrace ()**:在控制台上打印Throwable对象封装的异常信息
424
424
You can’t perform that action at this time.
0 commit comments