更多"现有包结构:  com |-- x&en"的相关试题:
[多项选择] 现有如F包结构: com |一一X | |一一Alpha.class | | | |一一y I |一一Beta.class | |l-- Gamma.class 和类: class Test { Alpha a; Beta b; Gamma c; } 哪三个必须加入到类Test中,以使其通过编译?()
A. package y;
B. package com;
C. import com.x.y.*;
D. import com.x.*;
[多项选择] 现有如下包结构: com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class 和类: class Test { Alpha a; Beta b; Gamma c; } 哪三个必须加入到类 Test 中,以使其通过编译?()
A. package y;
B. package com;
C. import com.x.*;
D. import com.x.y.*
[单项选择] 现有: class Cat { Cat (int c) {System.out.print {"cat"+c+" "); } } class SubCat extends Cat { SubCat (int c){super (5); System.out.print ("cable");} SubCat() { this (4); } public static void main (String [] args) { SubCat s= new SubCat(); } } 结果为:()
A. cat5
B. cable
C. cat5 cable
D. cable cat5
[单项选择] 现有: 1. abstract class Color { 2.protected abstract String getRGB(); 3. } 4. 5. public class Blue extends Color { 6. //insert code here 7. } 和四个声明: public String getRGB() { return "blue"; } String getRGB() { return "blue"; ) private String getRGB() { return "blue"; } protected String getRGB() { return "blue"; ) 分别插入到第6行,有几个可以通过编译?()
A. 0
B. 1
C. 2
D. 3
[单项选择] 现有: package mypack; import java.awt.Color; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class ButtList extends JFrame { public static void main(String[] args) { ButtList bl =new ButtList(); } ButtList(){ JPanel pl=new JPanel(); pl.setBackground (Color.pink); p1.add(new JButton("one")); p1.add(new JButton("Two")); p1.add(new JButton("Three")); add("South",p1); setLayout(new Fl.wLayout()); setSize(200,200); setVisible(true); } } 上述代码运行后的显示效果是哪项?()
A. 3个按钮从左到右排列在Frame的底部
B. 3个按钮从左到右排列在Frame的顶部
C. 按钮无法显示
D. 只有按钮Three显示出来并占据Frame整个区域
[单项选择] 现有: class TestMain { static int x = 2; static { x = 4; } static public void main(String[] args) { int y = x + 1; System.out.println(y); } } 和命令行: java TestMain 结果为:()
A. 3
B. 5
C. 编译失败
D. 运行时异常被抛出
[单项选择] A customer has 2 E1s to add between far-end nodes in an SNCP ring. What type of circuit should you recommend? ()
A. LO-PATH circuits
B. HO-PATH circuits
C. 1:1 protection circuits
D. 1:N protection circuits
E. LO-TUNNEL tunnel circuits
[单项选择] class A { public byte getNumber () { return 1; } } class B extends A { public short getNumber() { return 2; } public static void main (String args) { B b = new B (); System.out.printIn(b.getNumber()) } } What is the result?()
A. Compilation succeeds and 1 is printed.
B. Compilation succeeds and 2 is printed.
C. An error at line 8 causes compilation to fail.
D. An error at line 14 causes compilation to fail.
E. Compilation succeeds but an exception is thrown at line 14.
[单项选择] interface foo { int k = 0; } public class test implements Foo ( public static void main(String args) ( int i; Test test = new test (); i= test.k; i= Test.k; i= Foo.k; ) ) What is the result? ()
A. Compilation succeeds.
B. An error at line 2 causes compilation to fail.
C. An error at line 9 causes compilation to fail.
D. An error at line 10 causes compilation to fail.
E. An error at line 11 causes compilation to fail.
[简答题] 已知下列程序: D1 DB 10 DUP(?) D2 DB 30H,31H,32H,33H,34H,35H,36H,37H,38H,39H ┇ MOV CX,LENGTH D1 MOV SI,SIZE D1—TPYE D1 LP:MOV AL,D2[SI] MOV D1[SI],AL SUB SI,TYPE D1 DEC CX JNZ LP HLT 问: (1)该程序执行后,D1单元开始的10个字节内容是什么? (2)该程序完成的功能是什么?
[单项选择] 现有: 3.import java.util.*; 4.class ForInTest { 5.static List list = new ArrayList(); 6.public static void main (String [] args){ 7. 8.list.add("a"); list.add("b"); list.add("c"); 9.//insert code here 10.System.out.print(o); } } 哪一行插入到第9行将导致输出“abc”?()
A. for(Object o : list)
B. for(Iterator o : list)
C. for(Object o : list.iterator())
D. for(Iterator o : list.iterator(); o.hasNext (); )
[多项选择] 现有: 1. import java.util.*; 2. 3. Class FindStuff { 4.public static void main (String[]args) { 5, //insert code here 6. c.put ("X", 123); 7. } 8. } 分别插入到第5行,哪三行允许代码编译?()
A. Map c= new SortedMap();
B. HashMap c= new HashMap();
C. HashMap c= new Hashtalole();
D. SortedMap c= new TreeMap();
E. ArrayList c= new ArrayList();
F. MaD c = new LinkedHashMap();
[单项选择] You are part of the DBA team working for a multinational bank. The team is responsible for performing administrative tasks on the database server located at the home office. The database server at the home office has a production database and a test database named TESTDB. The test database is primarily used for testing database commands and configuration settings befor implementing these settings on the production database. The test database is also used for the development of database applications. You have been asked by the senior DBA to grant the SYSDBA privilege to a new team member, John, so that he can perform some administrative tasks, such as shutdown and startup operations, on TESTDB. You use the password file to configure remote authentication on the TESTDB database. You execute the following statement to grant the SYSDBA privilege to John: SQL>GRANT SYSDBA TO john; However, you receive the following error: ORA-01996: GRANT failed: password file ’c:/oracle/ora9i/dbs/testdb.pwd’ is full Which action should you take to add the user john to the password file without removing any of the existing users?()
A. Create another password file and then re-execute the GRANT statement.
B. Re-create the password file, specifying a larger number of allowed entries, and then re-execute the GRANT statement.
C. Change the value of the REMOTE_LOGIN_PASSWORDFILE initialization parameter in theinitialization parameter file to NONE and then re-execute the GRANT statement.
D. Change the value of the REMOTE_LOGIN_PASSWORDFILE initialization parameter in the initialization parameter file to SHARED and then re-execute the GRANT statement.
[单项选择] You want to use RMAN to create compressed backups. Which statement is true about the compression algorithms that RMAN can use?()
A. The BZIP2 compression algorithm consumes more CPU resources than the ZLIB compression algorithm.
B. The ZLIB compression algorithm consumes more CPU resources than the BZIP2 compression algorithm.
C. The ZLIB compression algorithm provides maximum compression and produces smaller backups than the BZIP2 compression algorithm.
D. Only the BZIP2 compression algorithm can be used to make compressed backups to disk.
[单项选择] 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?()
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);
[多项选择] A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()
A. Id
B. Val
C. Name
D. Param
E. Value
F. Property
[单项选择] You need to back up the existing data on a computer before you install a new application. You also need to ensure that you are able to recover individual user files that are replaced or deleted during the installation. What should you do?()
A. Create a System Restore point.
B. Perform an Automated System Recovery (ASR) backup and restore.
C. In the Backup and Restore Center window, click the Back up files button.
D. In the Backup and Restore Center window, click the Back up computer button.