black

SCJP程序员认证考试

登录

多项选择题

switch(x) { 
default: 
System.out.println(“Hello”); 
} 
Which two are acceptable types for x?() 

A. byte
B. long
C. char
D. float
E. Short
F. Long

相关考题

单项选择题 Youwanttolimitaccesstoamethodofapublicclasstomembersofthesameclass.Whichaccessaccomplishesthisobjective?()

单项选择题 publicclassTest{ publicstaticvoidmain(String[]args){ intx=0; assert(x>0):“assertionfailed”; System.out.println(“finished”); } } Whatistheresult?()

单项选择题 classSuper{publicintgetLenght(){return4;}}publicclassSubextendsSuper{publiclonggetLenght(){return5;}publicstaticvoidmain(String[]args){Supersooper=newSuper();Subsub=newSub();System.out.println(sooper.getLenght()+“,”+sub.getLenght());}}Whatistheoutput?()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2