单项选择题
Which statements about the garbage collection are true?()
A. The program developer must create a thread to be responsible for free the memory.
B. The garbage collection will check for and free memory no longer needed.
C. The garbage collection allow the program developer to explicity and immediately free the memory.
D. The garbage collection can free the memory used java object at expect time.
点击查看答案&解析
相关考题
-
单项选择题
Given the following expression about TextField which use a proportional pitch font. TextField t = new TextField("they are good",40); Which statement is true?()
A. The displayed string can use multiple fonts.
B. The maximum number of characters in a line will be 40.
C. The displayed width is exactly 40 characters.
D. The user can edit the characters. -
单项选择题
Given the following code: if (x>0) { System.out.println("first"); } else if (x>-3) { System.out.println("second"); } else { System.out.println("third"); } Which range of x value would print the string "second"?()
A. x > 0
B. x > -3
C. x <= -3
D. x <= 0 & x > -3 -
单项选择题
Whichisthereturntypeofthemethodmain()?
A. int
B. void
C. boolean
D. static
