多选题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.


相似考题
更多“多选题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”相关问题
  • 第1题:

    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

  • 第2题:

    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

  • 第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 regarding the USING and ON clauses in table joins?()

    • A、Both USING and ON clauses can be used for equijoins and nonequijoins 
    • B、Amaximum of one pair of columns can be joined between two tables using the ON clause 
    • C、The ON clause can be used to join tables on columns that have different names but compatible data types 
    • D、The WHERE clause can be used to apply additional conditions in SELECT statements containing the ON or the USING clause 

    正确答案:C,D

  • 第5题:

    Which two statements are true regarding single row functions?()

    • A、They accept only a single argument 
    • B、They can be nested only to two levels 
    • C、Arguments can only be column values or constants 
    • D、They always return a single result row for every row of a queried table 
    • E、They can return a data type value different from the one that is referenced

    正确答案:D,E

  • 第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


    正确答案: A,C
    解析: 暂无解析

  • 第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.


    正确答案: F,A
    解析: 暂无解析

  • 第8题:

    多选题
    Given a class whose instances, when found in a collection of objects, are sorted by using the compare To 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.


    正确答案: D,A
    解析: 暂无解析

  • 第9题:

    多选题
    Which of these statements about penultimate hop popping are true?()
    A

    It is used only for directly connected subnets or aggregate routes

    B

    It can only be used with LDP.

    C

    It is only used when two or more labels are stacked.

    D

    It enables the Edge LSR to request a label pop operation from Its upstream neighbors

    E

    It is requested through TDP using a special label value that is also called the implicit-null value.

    F

    It is requested through LDP using a special label value that is also called the implicit-null value.


    正确答案: E,A
    解析: 暂无解析

  • 第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


    正确答案: D,B
    解析: 暂无解析

  • 第11题:

    多选题
    Which statements are true regarding the Query Result Cache?()
    A

    It can be set at the system, session, or table level.

    B

    It is used only across statements in the same session.

    C

    It can store the results from normal as well as flashback queries.

    D

    It can store the results of queries based on normal,temporary,and dictionary tables.


    正确答案: A,C
    解析: 暂无解析

  • 第12题:

    多选题
    Which two statements about the Cisco Nexus 1000V VSM are true?()
    A

    It performs switching decisions and forwarding for the VEM

    B

    It can be run on a virtual machine

    C

    It can be used for remote VEM switching Iine cards


    正确答案: B,C
    解析: 暂无解析

  • 第13题:

    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

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    Which two statements are true about the hashCode method?()

    • A、The hashCode method for a given class can be used to test for object equality and object inequality for that class.
    • B、The hashCode method is used by the java.util.SortedSet collection class to order the elements within that set.
    • C、The hashCode method for a given class can be used to test for object inequality, but NOT objecte quality, for that class.
    • D、The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.
    • E、The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.

    正确答案:C,E

  • 第17题:

    多选题
    Which three of these statements about penultimate hop popping are true?()
    A

    It is used only for directly connected subnets or aggregate routes.

    B

    It can only be used with LDP.

    C

    It is only used when two or more labels are stacked.

    D

    It enables the Edge LSR to request a label pop operation from its upstream neighbors.

    E

    It is requested through TDP using a special label value that is also called the implicit-null value.

    F

    It is requested through LDP using a special label value that is also called the implicit-null value.


    正确答案: F,E
    解析: 暂无解析

  • 第18题:

    多选题
    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.


    正确答案: D,A
    解析: 暂无解析

  • 第19题:

    多选题
    Which two statements are true regarding the USING and ON clauses in table joins?()
    A

    Both USING and ON clauses can be used for equijoins and nonequijoins

    B

    Amaximum of one pair of columns can be joined between two tables using the ON clause

    C

    The ON clause can be used to join tables on columns that have different names but compatible data types

    D

    The WHERE clause can be used to apply additional conditions in SELECT statements containing the ON or the USING clause


    正确答案: A,C
    解析: 暂无解析

  • 第20题:

    多选题
    Which two statements regarding a SQL profile are true?()
    A

    It is built by Automatic Tuning Optimizer.

    B

    It cannot be stored persistently in the data dictionary.

    C

    It can be used by the query optimizer automatically.

    D

    It can be created manually by using the CREATE PROFILE command.


    正确答案: C,B
    解析: 暂无解析

  • 第21题:

    多选题
    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
    解析: 暂无解析

  • 第22题:

    多选题
    Which two statements are true about the hashCode method?()
    A

    The hashCode method for a given class can be used to test for object equality and object inequality for that class.

    B

    The hashCode method is used by the java.util.SortedSet collection class to order the elements within that set.

    C

    The hashCode method for a given class can be used to test for object inequality, but NOT objecte quality, for that class.

    D

    The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.

    E

    The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.


    正确答案: E,D
    解析: 暂无解析

  • 第23题:

    多选题
    Which two statements are true regarding single row functions?()
    A

    They accept only a single argument

    B

    They can be nested only to two levels

    C

    Arguments can only be column values or constants

    D

    They always return a single result row for every row of a queried table

    E

    They can return a data type value different from the one that is referenced


    正确答案: E,B
    解析: 暂无解析