网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
What is the use of final keyword?
参考答案
更多 “ What is the use of final keyword? ” 相关考题
考题
Oneoftheusecasesinyourwebapplicationusesmanysession-scopedattributes.Attheendoftheusecase,youwanttoclearoutthissetofattributesfromthesessionobject.Assumethatthisstaticvariableholdsthissetofattributenames:201.privatestaticfinalSetUSE_CASE_ATTRS;202.static{203.USE_CASE_ATTRS.add(customerOID);204.USE_CASE_ATTRS.add(custMgrBean);205.USE_CASE_ATTRS.add(orderOID);206.USE_CASE_ATTRS.add(orderMgrBean);207.}Whichcodesnippetdeletestheseattributesfromthesessionobject?()A.session.removeAll(USE_CASE_ATTRS);B.for(Stringattr:USE_CASE_ATTRS){session.remove(attr);}C.for(Stringattr:USE_CASE_ATTRS){session.removeAttribute(attr);}D.for(Stringattr:USE_CASE_ATTRS){session.deleteAttribute(attr);}E.session.deleteAllAttributes(USE_CASE_ATTRS);
考题
下面对于final修饰方法的描述中,正确的是?A.final修饰的静态方法不能被类名调用B.final修饰的方法不能被子类重写C.final修饰的抽象方法可以被子类重写D.final只能修饰非静态的方法
考题
8、关于final修饰成员变量说法正确的是?()A.被final修饰的成员变量为常量B.被final修饰的成员变量不能被继承C.被final修饰的成员变量可以被多次赋值D.final只能在接口中修饰成员变量
考题
下面关于final关键字描述不正确的是?A.final可以修饰成员变量、方法、类B.final修饰的成员变量可以看成常量C.final修饰的方法不能被重载D.final修饰的类不能被继承
考题
被final修饰的方法不能被(_____),被final修饰的变量不能被(____) ,被final修饰的类不能被(____)
热门标签
最新试卷