可学答题网 > 问答 > SCWCD(310-083)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

One of the use ca


One of the use cases in your web application uses many session-scoped attributes. At the end of the usecase,you want to clear out this set of attributes from the session object. Assume that this static variableholds this set of attribute names: 201.private static final Set USE_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.} Which code snippet deletes these attributes from the session object?()

  • Asession.removeAll(USE_CASE_ATTRS);
  • Bfor ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}
  • Cfor ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}
  • Dfor ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}
  • Esession.deleteAllAttributes(USE_CASE_ATTRS);
参考答案
参考解析:
分类:SCWCD(310-083)题库
相关推荐

1、One of the use ca

One of the use cases in your web application uses many session-scoped attributes. At the e...

2、One of your best 

One of your best customers has limited funding and is interested in the ability to increas...

3、One of your customers&

One of your customers has decided to deploy location-based services in addition to existing wir...

4、One of the users 

One of the users in the PROD database,Adams,complains that his update on the table,TRANS, i...

5、Exhibit, One of the&en

Exhibit, One of the important tables in the USERStablespace was dropped and purged from the&en...

6、What would the amps be at 240 volts wi

What would the amps be at 240 volts with an 8 ohm resistance?()A32~5 ampsB25 ampsC1~5 ampsD30 am