GSSP-Java

GSSP-Java practice questions, page 9 of 11, with answer review and explanations.

Question 41

Which of the following is used to restore the objects that have been previously serialized by a stream?

  1. FileInputStream
  2. ObjectOutputStream
  3. ObjectInputStream
  4. FileOutputStream

Question 42

You work as a Software Developer for UcTech Inc. You build an online book shop, so that users can purchase books using their credit cards. You want to ensure that only the administrator can access the credit card information sent by users. Which security mechanism will you use to accomplish the task?

  1. Confidentiality
  2. Authorization
  3. Authentication
  4. Data integrity

Question 43

You work as a Programmer for InfoTech Inc and develop the following two declarations. Manager /acme/Manager/* GET POST Manager /acme/Manager/* GET POST Manager Which of the following statements is true about the in the code given above?

  1. Nobody is allowed to access the specified resources.
  2. Only Manager is allowed to access the specified resources.
  3. The first <security-constraint> element declaration is incorrect.
  4. It is not possible to define the multiple security constraint on a single resource.

Question 44

Mark works as a Programmer for InfoTech Inc. He develops a Java application that uses the encryption and compression techniques. Which of the following interfaces will he use to control the serialization and deserialization processes?

  1. Flushable
  2. Closeable
  3. Serializable
  4. Externalizable

Question 45

Which of the following methods is used to encrypt or decrypt data in a single step?

  1. wrap()
  2. update()
  3. digest()
  4. doFinal()