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
- A、session.removeAll(USE_CASE_ATTRS);
- B、for( String attr : USE_CASE_ATTRS ){ session.remove(attr); }
- C、for( String attr : USE_CASE_ATTRS ){session.removeAttribute(attr);}
- D、for( String attr : USE_CASE_ATTRS ){session.deleteAttribute(attr);}
- E、session.deleteAllAttributes(USE_CASE_ATTRS);
正确答案:C
答案解析:有

微信扫一扫手机做题