Think in java 答案_Chapter 4_Exercise 21
2007-01-23 13:57
573 查看
阅前声明: http://blog.csdn.net/heimaoxiaozi/archive/2007/01/19/1487884.aspx
/****************** Exercise 21 *****************
* Comment the line marked (1) in
* ExplicitStatic.java and verify that the static
* initialization clause is not called. Now
* uncomment one of the lines marked (2) and
* verify that the static initialization clause
* is called. Now uncomment the other line marked
* (2) and verify that static initialization only
* occurs once.
***********************************************/
public class E21_LeftToReader {
public static void main(String args[]) {
System.out.println("Exercise left to reader");
}
}
//+M java E21_LeftToReader
/****************** Exercise 21 *****************
* Comment the line marked (1) in
* ExplicitStatic.java and verify that the static
* initialization clause is not called. Now
* uncomment one of the lines marked (2) and
* verify that the static initialization clause
* is called. Now uncomment the other line marked
* (2) and verify that static initialization only
* occurs once.
***********************************************/
public class E21_LeftToReader {
public static void main(String args[]) {
System.out.println("Exercise left to reader");
}
}
//+M java E21_LeftToReader
相关文章推荐
- Think in java &答案_Chapter 2_Exercise 1
- Think in java 答案_Chapter 4_Exercise 16
- Think in java 答案_Chapter 5_Exercise 3
- Think in java &答案_Chapter 2_Exercise 2
- Think in java 答案_Chapter 2_Exercise 8
- Think in java 答案_Chapter 4_Exercise 1
- Think in java 答案_Chapter 4_Exercise 8
- Think in java 答案_Chapter 4_Exercise 17
- Think in java chapter's答案_Chapter 2_Exercise 3
- Think in java 答案_Chapter 3_Exercise 1
- Think in java 答案_Chapter 4_Exercise 2
- Think in java 答案_Chapter 4_Exercise 18
- Think in java 答案_Chapter 5_Exercise 5
- Think in java 答案_Chapter 5_Exercise 9
- Think in java 答案_Chapter 2_Exercise 4
- Think in java 答案_Chapter 2_Exercise 9
- Think in java 答案_Chapter 3_Exercise 2
- Think in java 答案_Chapter 3_Exercise 6
- Think in java 答案_Chapter 4_Exercise 9
- Think in java 答案_Chapter 4_Exercise 19