black

SCJP程序员认证考试

登录

单项选择题

A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access control?()    

A. public
B. no modifier
C. protected
D. private

相关考题

多项选择题 Whichofthefollowingstatementsaboutvariablesandscopearetrue?()

单项选择题 Given the following code:     1) public void modify() {     2) int i, j, k;     3) i = 100;     4) while ( i > 0 ) {     5) j = i * 2;  6) System.out.println (" The value of j is " + j );     7) k = k + 1;     8) i--;     9) }  10) }  Which line might cause an error during compilation?()

多项选择题 IntheJavaAPIdocumentationwhichsectionsareincludedinaclassdocument?()

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3