Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439

 

 

 

This time, the object does not become garbage.This is because in the second statement a reference to the object is savedin a second variable, beta.Now when, in the third statement, alpha is set to null,there is still a reference to the object.

There can be many copies of the reference to an object.Only when there is no reference to an object anywhere does the object become garbage.

QUESTION 8:

(Review:) How can you determine what an object of a particular class can do?