多选题Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()AIt can be invoked only from the doGet or doPost methods.BIt can be used independently of the getRemoteUser method.CCan return true even w

题目
多选题
Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()
A

It can be invoked only from the doGet or doPost methods.

B

It can be used independently of the getRemoteUser method.

C

Can return true even when its argument is NOT defined as a valid role name in the deployment descriptor.

D

Using the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two statements are true about the Automatic Diagnostic Repository (ADR)?() (Choose two.)

A. The ADR base keeps all diagnostic information in binary format

B. SQL*Plus provides the ADRI script, which can be used to work with ADR

C. The ADR can be used for problem diagnosis only when the database is open

D. The ADR can be disabled by settting the DIAGNOSTIC_DEST parameter to null

E. The ADR can be used for problem diagnosis even when the database instance is down

F. The ADR base is shared across multiple instances


参考答案:E, F

第2题:

Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()

  • A、Every  tag must have at least one  tag.
  • B、A  tag can have many  tags.
  • C、A given  tag can apply to only one  tag.
  • D、A given  tag can contain from zero to many  tags.
  • E、It is possible to construct a valid  tag such that,for a given resource,no user rolescan access that resource.

正确答案:B,E

第3题:

Which two statements are true about the Automatic Diagnostic Repository (ADR)?()

A. The ADR base keeps all diagnostic information in binary format

B. SQL*Plus provides the ADRI script, which can be used to work with ADR

C. The ADR can be used for problem diagnosis only when the database is open

D. The ADR can be disabled by settting the DIAGNOSTIC_DEST parameter to null

E. The ADR can be used for problem diagnosis even when the database instance is down

F. The ADR base is shared across multiple instances


参考答案:E, F

第4题:

Which two statements are true about the Automatic Diagnostic Repository (ADR)?() 

  • A、 The ADR base keeps all diagnostic information in binary format
  • B、 SQL*Plus provides the ADRI script, which can be used to work with ADR
  • C、 The ADR can be used for problem diagnosis only when the database is open
  • D、 The ADR can be disabled by settting the DIAGNOSTIC_DEST parameter to null
  • E、 The ADR can be used for problem diagnosis even when the database instance is down
  • F、 The ADR base is shared across multiple instances

正确答案:E,F

第5题:

Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()

  • A、The class implements java.lang.Comparable.
  • B、The class implements java.util.Comparator.
  • C、The interface used to implement sorting allows this class to define only one sort sequence.
  • D、The interface used to implement sorting allows this class to define many different sort sequences.

正确答案:A,C

第6题:

Which two statements are true regarding the USING clause in table joins?()

  • A、It can be used to join a maximum of three tables 
  • B、It can be used to restrict the number of columns used in a NATURAL join 
  • C、It can be used to access data from tables through equijoins as well as nonequijoins 
  • D、It can be used to join tables that have columns with the same name and compatible data types

正确答案:B,D

第7题:

Which two of statements are true?()

  • A、It is possible to synchronize static methods.
  • B、When a thread has yielded as a result of yield(), it releases its locks.
  • C、When a thread is sleeping as a result of sleep(), it releases its locks.
  • D、The Object.wait() method can be invoked only from a synchronized context.
  • E、The Thread.sleep() method can be invoked only from a synchronized context.
  • F、When the thread scheduler receives a notify() request, and notifies a thread, that thread immediately releases its lock.

正确答案:A,D

第8题:

Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo()method, which two statements are true?()

A.The class implements java.lang.Comparable.

B.The class implements java.util.Comparator.

C.The interface used to implement sorting allows this class to define only one sort sequence.

D.The interface used to implement sorting allows this class to define many different sort sequences.


参考答案:A, C

第9题:

Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()

  • A、It can be invoked only from the doGet or doPost methods.
  • B、It can be used independently of the getRemoteUser method.
  • C、Can return "true" even when its argument is NOT defined as a valid role name in the deployment descriptor.
  • D、Using the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.

正确答案:B,C

第10题:

Which two statements are true about the Automatic Diagnostic Repository (ADR)?() (Choose two.)

  • A、The ADR base keeps all diagnostic information in binary format
  • B、SQL*Plus provides the ADRI script, which can be used to work with ADR
  • C、The ADR can be used for problem diagnosis only when the database is open
  • D、The ADR can be disabled by settting the DIAGNOSTIC_DEST parameter to null
  • E、The ADR can be used for problem diagnosis even when the database instance is down
  • F、The ADR base is shared across multiple instances

正确答案:E,F

更多相关问题