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?()
Along customerOID = 47L;session.setAttribute(customerOID, new Long(customerOID));
Blong customerOID = 47L;session.setLongAttribute(customerOID, new Long(customerOID));
Clong customerOID = 47L;session.setAttribute(customerOID, customerOID);
Dlong 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、数据的压缩与解压