nerdexam
GIAC

GSSP-JAVA · Question #58

Which of the following are valid method signatures of the getInstance() method of the Policy class? Each correct answer represents a complete solution. Choose all that apply.

The correct answer is B. static Policy getInstance(String type, Policy.Parameters params, Provider provider) C. getInstance(String type, Policy.Parameters params) D. static Policy getInstance(String type, Policy.Parameters params, String provider). See the full explanation below for the reasoning.

Question

Which of the following are valid method signatures of the getInstance() method of the Policy class? Each correct answer represents a complete solution. Choose all that apply.

Options

  • AgetInstance(ProtectionDomain domain)
  • Bstatic Policy getInstance(String type, Policy.Parameters params, Provider provider)
  • CgetInstance(String type, Policy.Parameters params)
  • Dstatic Policy getInstance(String type, Policy.Parameters params, String provider)

How the community answered

(47 responses)
  • A
    17% (8)
  • B
    83% (39)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice