站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Programmer's Guide to Java Certification 2nd

Programmer's Guide to Java Certification 2nd

[ directory ] Previous Section Next Section

Chapter 8. Object Lifetime

Exam Objectives

  • State the behavior that is guaranteed by the garbage collection system.

  • Write code that explicitly makes objects eligible for garbage collection.

  • Recognize the point in a piece of source code at which an object becomes eligible for garbage collection.

Supplementary Objectives

  • Write code that makes proper use of the finalization mechanism to free resources before an object is garbage collected.

  • Distinguish between static and instance initializer expressions and initializer blocks, and how they are used for object initialization and class initialization.

  • State the phases involved in initializing the object state when an object is created using the new operator.

    [ directory ] Previous Section Next Section