单项选择题
Given:
When line 15 is reached, how many objects are eligible for the garbage collector?()
A.0
B.1
C.2
D.3
E.4
F.5
点击查看答案
相关考题
-
单项选择题
Given a class Repetition: Which code should be inserted at line 1 of Demo.java to compile and run Demo to print "pizzapizza"?()
A.import utils.*;
B.static import utils.*;
C.import utils.Repetition.*;
D.static import utils.Repetition.*;
E.import utils.Repetition.twice();
F.import static utils.Repetition.twice;
G.static import utils.Repetition.twice; -
单项选择题
Given: Which code fragment, inserted at line 23, allows the code to compile?()
A.df = new DateFormat();
B.df = Date.getFormat();
C.df = date.getFormat();
D.df = DateFormat.getFormat();
E.df = DateFormat.getInstance(); -
单项选择题
Given: Which regular expression, inserted at line 12, correctly splits test into "Test A", "Test B", and "Test C"?()
A.String regex="";
B.String regex=" .";
C.String regex=".*";
D.String regex="\\s";
E.String regex="\\.\\s*";
F.String regex="\\w[\.]+";
