易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session?()

A

long customerOID = 47L;session.setAttribute(customerOID, new Long(customerOID));

B

long customerOID = 47L;session.setLongAttribute(customerOID, new Long(customerOID));

C

long customerOID = 47L;session.setAttribute(customerOID, customerOID);

D

long customerOID = 47L;session.setNumericAttribute(customerOID, new Long(customerOID));

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • 理论上已经证明,有了()三种基本控制结构,就可以编写任何复杂的计算机程序。

    A、转子(程序),返回,处理

    B、输入,输出,处理

    C、I/O,转移,循环

    D、顺序,选择,循环

  • 所有非windows应用程序不能在windows中使用。

    A、对

    B、错

  • 5. class Order2 implements Runnable {  6. public void run() {  7. for(int x = 0; x 〈 4; x++) {  8. try { Thread.sleep(100); } catch (Exception e) { }  9. System.out.print("r");  10. } }  11. public static void main(String [] args) {  12. Thread t = new Thread(new Order2());  13. t.start();  14. for(int x = 0; x 〈 4; x++) {  15. // insert code here  16. System.out.print("m");  17. } } }  哪一个插入到第15行,最有可能产生输出 rmrmrmrm ?()  

    A、Thread.sleep(1);

    B、Thread.sleep(100);

    C、Thread.sleep(1000);

    D、try { Thread.sleep(100); } catch (Exception e) { }

  • 在IC卡公用电话上不用插卡即可拨打的紧急电话除了有110、119和122外,还有什么?()

    A、121

    B、120

    C、189

  • 在多媒体计算机中,声卡是获取数字音频信息的主要器件之一,下列不是声卡主要功能的是()

    A、声音信号的数字化

    B、存储声音信号

    C、还原数字音频信号

    D、数据的压缩与解压

联系客服 会员中心
TOP