nerdexam
GIAC

GSSP-JAVA · Question #43

Mark works as a Programmer for InfoTech Inc. He develops a class named Data that imports all the required packages. The class Data uses a method named PrintData(), which uses a method that checks…

The correct answer is C. public void PrintData(). See the full explanation below for the reasoning.

Question

Mark works as a Programmer for InfoTech Inc. He develops a class named Data that imports all the required packages. The class Data uses a method named PrintData(), which uses a method that checks whether the caller has a BeanUser security role. Which of the following code of the method PrintData() will satisfy the requirement?

Options

  • Apublic void PrintData()
  • Bpublic void PrintData()
  • Cpublic void PrintData()
  • Dpublic void PrintData()

How the community answered

(46 responses)
  • A
    11% (5)
  • B
    4% (2)
  • C
    78% (36)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice