网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
多选题
Which statements about Java code security are true?()
A
The bytecode verifier loads all classes needed for the execution of a program.
B
Executing code is performed by the runtime interpreter.
C
At runtime the bytecodes are loaded, checked and run in an interpreter.
D
The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.
参考答案
参考解析
解析:
SL275中描述的Java程序运行的过程是这样的:类加载器(class loader)加载程序运行所需要的所有类,它通过区分本机文件系统的类和网络系统导入的类增加安全性,这可以限制任何的特洛伊木马程序,因为本机类总是先被加载,一旦所有的类被加载完,执行文件的内存划分就固定了,在这个时候特定的内存地址被分配给对应的符号引用,查找表(lookuo table)也被建立,由于内存划分发生在运行时,解释器在受限制的代码区增加保护防止未授权的访问;然后字节码校验器(byte code verifier)进行校验,主要执行下面的检查:类符合JVM规范的类文件格式,没有违反访问限制,代码没有造成堆栈的上溢或者下溢,所有操作 代码的参数类型都是正确的,没有非法的数据类型转换(例如将整型数转换成对象类型)发生;校验通过的字节码被解释器(interpreter)执行,解释器在必要时通过运行时系统执行对底层硬件的合适调用。后三个答案是SL275中的原话。
更多 “多选题Which statements about Java code security are true?()AThe bytecode verifier loads all classes needed for the execution of a program.BExecuting code is performed by the runtime interpreter.CAt runtime the bytecodes are loaded, checked and run in an interpreter.DThe class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.” 相关考题
考题
Given:What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?()
A. It is true that j==i.B. It is false that j==i.C. An exception is thrown at runtime.D. Compilation fails because of an error in line 13.
考题
Given:Which exception or error will be thrown when a programmer attempts to run this code?()
A.java.lang.StackOverflowErrorB.java.lang.IllegalStateExceptionC.java.lang.ExceptionInInitializerErrorD.java.lang.ArrayIndexOutOfBoundsException
考题
public class Threads3 implements Runnable { public void run() { System.out.print(”running”); } public static void main(String[] args) { Thread t = new Thread(new Threads3()); t.run(); t.run(); t.start(); } } What is the result?() A、 Compilation fails.B、 An exception is thrown at runtime.C、 The code executes and prints “running”.D、 The code executes and prints “runningrunning”.E、 The code executes and prints “runningrunningrunning”.
考题
public class Alpha{ public static void main( string[] args ){ if ( args.length == 2 ) { if ( args.[0].equalsIgnoreCase(“-b”) ) System.out.println( new Boolean( args[1] )); } } } And the code is invoked by using the command: java Alpha –b TRUE What is the result?() A、 trueB、 nullC、 falseD、 Compilation fails.E、 The code runs with no output.F、 An exception is thrown at runtime.
考题
Which statements about Java code security are true?() A、 The bytecode verifier loads all classes needed for the execution of a program.B、 Executing code is performed by the runtime interpreter.C、 At runtime the bytecodes are loaded, checked and run in an interpreter.D、 The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.
考题
//point X public class foo { public static void main (String[]args) throws Exception { java.io.printWriter out = new java.io.PrintWriter { new java.io.outputStreamWriter (System.out), true; out.printIn(“Hello”); } } } Which statement at PointX on line 1 allows this code to compile and run?() A、 Import java.io.*;B、 Include java.io.*;C、 Import java.io.PrintWriter;D、 Include java.io.PrintWriter;E、 No statement is needed.
考题
Which statements about inheritance are true?() A、 In Java programming language only allows single inheritance.B、 In Java programming language allows a class to implement only one interface.C、 In Java programming language a class cannot extend a class and implement a interface together.D、 In Java programming language single inheritance makes code more reliable.
考题
//point X public class foo ( public static void main (Stringargs) throws Exception { printWriter out = new PrintWriter (new ) java.io.outputStreamWriter (System.out), true; out.printIn(“Hello”); } ) Which statement at PointX on line 1 allows this code to compile and run?()A、 Import java.io.PrintWriter;B、 Include java.io.PrintWriter;C、 Import java.io.OutputStreamWriter;D、 Include java.io.OutputStreamWriter;E、 No statement is needed.
考题
import java.util.*; public class NameList { private List names = new ArrayList(); public synchronized void add(String name) { names.add(name); } public synchronized void printAll() { for (int i = 0; i System.out.print(names.get(i) +“ “); } } public static void main(String[] args) { final NameList sl = new NameList(); for(int i=0;i2;i++) { new Thread() { public void ruin() { sl.add(”A”); sl.add(”B”); sl.add(”C”); sl.printAll(); } }.start(); } } } Which two statements are true if this class is compiled and run?() A、 An exception may be thrown at runtime.B、 The code may run with no output, without exiting.C、The code may rum with output “A B A B C C “, then exit.D、The code may ruin with output “A A A B C A B C C “, then exit.E、 The code may rum with output “A B C A B C A B C “, then exit.F、The code may ruin with output “A B C A A B C A B C “, then exit.
考题
11.rbo = new ReallyBigObject(); 12.//more code here 13.rbo = null; 14./*insert code here*/ Which statement should be placed at line 14 to suggest that the virtual machine expend effort toward recycling the memory used by the objectrbo?()A、System.gc();B、Runtime.gc();C、System.freeMemory();D、Runtime.getRuntime().growHeap();E、Runtime.getRuntime().freeMemory();
考题
Which statement is true when you run the SQL Tuning Advisor with limited scope?()A、Access path analysis is not performed for the SQL statements.B、SQL structure analysis is not performed for the SQL statements.C、SQL Profile recommendations are not generated for the SQL statements.D、The staleness and absence of the statistics are not checked for the objects in the query supplied to the SQL Tuning Advisor.
考题
What two statements are true about Oracle Enterprise Manager’s Java Diagnostic tool, which makes the tool suitable for production server diagnostics ?()A、 virtually zero overhead for application running in the JVM B、 no stalling of running JVM when taking a heap dump for memory analysis C、 no need of modification, changes, or instrumentation of the application since is uses Network Protocol Analysis (NPA technology)D、 provides Byte Code Instrumentation for Java
考题
单选题public class Threads3 implements Runnable { public void run() { System.out.print(”running”); } public static void main(String[] args) { Thread t = new Thread(new Threads3()); t.run(); t.run(); t.start(); } } What is the result?()A
Compilation fails.B
An exception is thrown at runtime.C
The code executes and prints “running”.D
The code executes and prints “runningrunning”.E
The code executes and prints “runningrunningrunning”.
考题
单选题You work as an application developer at Certkiller .com. Certkiller .com has asked you to create a multi-threaded application, which executes a critical database backup operation on an hourly basis. You define this operation with the following code: public void BackupDB () { //Implementation code } You then create a Thread object for the purpose of invoking this method. You need to ensure that the thread is scheduled for execution before any other thread at runtime.What should you do?()A
AB
BC
CD
D
考题
多选题After performing a clean shut down of the database instance for maintenance, you mount the database andthen execute a command to open the database:SQL ALTER DATABASE OPEN; Which two statements are true()AThe online redo log files and online data files are opened.BAll the online data file headers are checked for consistency.CInstance recovery is performed before opening the database.DThe path and existence of all the log file members are checked
考题
单选题Click the Exhibit button. What is the result?()A
The code will deadlock.B
The code may run with output "2 0 6 4".C
The code may run with no output.D
The code may run with output "0 6".E
An exception is thrown at runtime.F
The code may run with output "0 2 4 6".
考题
单选题Examine the following RMAN script: RMAN run { debug on; allocate channel c1 type disk; backup datafile 5; } Which statement describes the purpose of the script?()A
The data file is checked for physical corruption and backed up if found clean.B
The backup of data file 5 is performed and the interactive messages during the backup are suppressed.C
The existing backup for the data file is checked and the backup is performed if there are changes in the data file after the last backup.D
The backup of data file 5 is performed and all SQL statements that are executed during RMAN compilation and their results are displayed
考题
单选题Given: What is the result?()A
Compilation fails.B
An exception is thrown at runtime.C
The code executes and prints "running".D
The code executes and prints "runningrunning".E
The code executes and prints "runningrunningrunning".
考题
单选题11. rbo = new ReallyBigObject(); 12. // more code here 13. rbo = null; 14. /* insert code here */ Which statement should be placed at line 14 to suggest that the virtual machine expend effort toward recycling the memory used by the object rbo?()A
System.gc();B
Runtime.gc();C
System.freeMemory();D
Runtime.getRuntime().growHeap();E
Runtime.getRuntime().freeMemory();
考题
单选题The ISPS Code consists of a mandatory section-Part A, which shows()A
the detailed security-related requirementsB
guidelines to meet security-related requirementsC
the detailed security-related requirements and the guidelines to meet themD
how to run a shipping company considering the potential terrorism action
考题
多选题Which statements about Java code security are true?()AThe bytecode verifier loads all classes needed for the execution of a program.BExecuting code is performed by the runtime interpreter.CAt runtime the bytecodes are loaded, checked and run in an interpreter.DThe class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.
考题
多选题What two statements are true about Oracle Enterprise Manager’s Java Diagnostic tool, which makes the tool suitable for production server diagnostics ?()Avirtually zero overhead for application running in the JVMBno stalling of running JVM when taking a heap dump for memory analysisCno need of modification, changes, or instrumentation of the application since is uses Network Protocol Analysis (NPA technology)Dprovides Byte Code Instrumentation for Java
考题
单选题//point X public class foo ( public static void main (Stringargs) throws Exception { printWriter out = new PrintWriter (new ) java.io.outputStreamWriter (System.out), true; out.printIn(“Hello”); } ) Which statement at PointX on line 1 allows this code to compile and run?()A
Import java.io.PrintWriter;B
Include java.io.PrintWriter;C
Import java.io.OutputStreamWriter;D
Include java.io.OutputStreamWriter;E
No statement is needed.
考题
单选题public class Alpha{ public static void main( string[] args ){ if ( args.length == 2 ) { if ( args.[0].equalsIgnoreCase(“-b”) ) System.out.println( new Boolean( args[1] )); } } } And the code is invoked by using the command: java Alpha –b TRUE What is the result?()A
trueB
nullC
falseD
Compilation fails.E
The code runs with no output.F
An exception is thrown at runtime.
考题
多选题Click the Exhibit button. Given: Which two statements are true if a NullPointerException is thrown on line 3 of class C? ()AThe application will crash.BThe code on line 29 will be executed.CThe code on line 5 of class A will execute.DThe code on line 5 of class B will execute.EThe exception will be propagated back to line 27.
考题
多选题After performing a clean shut down of the database instance for maintenance, you mount thedatabase and then execute a command to open the database: SQL ALTER DATABASE OPEN; Which two statements are true()AThe online redo log files and online data files are opened.BAll the online data file headers are checked for consistency.CInstance recovery is performed before opening the database.DThe path and existence of all the log file members are checked
考题
单选题Which statements, when inserted at the indicated position in the following code, will cause a runtime exception when attempting to run the program?() class A {} class B extends A {} class C extends A {} public class Q3ae4 { public static void main(String args[]) { A x = new A(); B y = new B(); C z = new C(); // insert statement here } }A
x = y;B
z = x;C
y = (B) x;D
z = (C) y;E
y = (A) y;
考题
多选题Which statements about inheritance are true?()AIn Java programming language only allows single inheritance.BIn Java programming language allows a class to implement only one interface.CIn Java programming language a class cannot extend a class and implement a interface together.DIn Java programming language single inheritance makes code more reliable.
热门标签
最新试卷