Skip to content

Commit

Permalink
Update Java基础知识篇.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Snailclimb authored Aug 1, 2018
1 parent ff67786 commit a9b709b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ Java环境变量PATH和CLASSPATH - 简书 http://www.jianshu.com/p/d63b099cf283

[https://blog.csdn.net/jianyuerensheng/article/details/51602015](https://blog.csdn.net/jianyuerensheng/article/details/51602015)

## <font face="楷体">java中equals方法的用法以及==的用法</font>

[http://www.cnblogs.com/bluestorm/archive/2012/03/02/2377615.html](http://www.cnblogs.com/bluestorm/archive/2012/03/02/2377615.html)

## <font face="楷体">String和StringBuffer、StringBuilder的区别是什么?String为什么是不可变的?</font>

Expand Down Expand Up @@ -230,4 +228,4 @@ finalize是Object类的一个方法,该方法在Object类中的声明protected
2)GC本来就是内存回收了,应用还需要在finalization做什么呢? 答案是大部分时候,什么都不用做(也就是不需要重载)。只有在某些很特殊的情况下,比如你调用了一些native的方法(一般是C写的),可以要在finaliztion里去调用C的释放函数。

## <font face="楷体">如果对象的引用被置为null,垃圾收集器是否会立即释放对象占用的内存?</font>
不会,在下一个垃圾回收周期中,这个对象将是可被回收的。
不会,在下一个垃圾回收周期中,这个对象将是可被回收的。

0 comments on commit a9b709b

Please sign in to comment.