Java 程序员认证模拟题及详细分析一
阐明:(真实考试) 1
考试形式:网络计算机 2
考题形式:多选,单选,简答 3
题量:60 4
考试时间:120 分钟 二
Which statement about the garbage collection mechanism are true
Garbage collection require additional programe code in cases where multiple threads are running
The programmer can indicate that a reference through a local variable is no longer of interest
The programmer has a mechanism that explicity and immediately frees the memory used by Java objects
The garbage collection mechanism can free the memory used by Java Object at explection time
The garbage collection system never reclaims memory from objects while are still accessible to running user threads
Give the following method: 1) public void method( ){ 2) String a,b; 3) a=new String(“hello world”); 4) b=new String(“game ov