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?
FileInputStream
ObjectOutputStream
ObjectInputStream
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?
Confidentiality
Authorization
Authentication
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?
Nobody is allowed to access the specified resources.
Only Manager is allowed to access the specified resources.
The first <security-constraint> element declaration is incorrect.
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?
Flushable
Closeable
Serializable
Externalizable
Question 45
Which of the following methods is used to encrypt or decrypt data in a single step?