nerdexam
GIAC

GSSP-JAVA · Question #171

Which of the following methods throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number?

The correct answer is D. checkConnect(). See the full explanation below for the reasoning.

Question

Which of the following methods throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number?

Options

  • AcheckDelete()
  • BcheckExec()
  • CcheckCreate()
  • DcheckConnect()

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    10% (3)
  • C
    16% (5)
  • D
    71% (22)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice