找考题网-背景图
单项选择题

A.AninstanceoftheInnerclasscanbeconstructedwith“newOute……

packagefoo;publicclassOuter(publicstaticclassInner())Whichstatementistrue?()

A.AninstanceoftheInnerclasscanbeconstructedwith“newOuter.Inner()”
B.Aninstanceoftheinnerclasscannotbeconstructedoutsideofpackagefoo.
C.Aninstanceoftheinnerclasscanonlybeconstructedfromwithintheouterclass.
D.Fromwithinthepackagebar,aninstanceoftheinnerclasscanbeconstructedwith“newinner()”
热门试题