[Free] 2017(Sep) EnsurePass Pass4sure GIAC GSSP-Java Dumps with VCE and PDF 111-120

EnsurePass
2017 Sep GIAC Official New Released GSSP-Java
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/GSSP-Java.html

GIAC Secure Software Programmer – Java

Question No: 111 – (Topic 2)

Which of the following statements about serialization are true?

Each correct answer represents a complete solution. Choose all that apply.

  1. Transient variables cannot be serialized.

  2. Externalizable is a marker interface and does not define any method.

  3. Serializable is a marker interface and does not define any method.

  4. Static variables cannot be serialized.

Answer: A,C,D

Question No: 112 – (Topic 2)

Which of the following code snippets will read the eighth byte of the file wRead.txt into the variable str?

  1. RandomAccessFile raf=new RandomAccessFile(quot;wRead.txtquot;); raf.seek(8);int str=raf.readByte();

  2. FileInputStream fis=new FileInputStream(quot;wRead.txtquot;); int str=fis.read(8);

  3. FileInputStream fis=new FileInputStream(quot;wRead.txtquot;); fis.skip(8);int str=fis.read();

  4. FileInputStream fis=new FileInputStream(quot;wRead.txtquot;); fis.skip(7);int str=fis.read();

Answer: D

Question No: 113 – (Topic 2)

Samantha works as a Software Developer for Bluetech Inc. She develops a class Warden that needs to access the Hostel class. The Hostel class is deployed in a JAR named City.JAR. What should be done so that during compilation the Warden class has access to the Hostel class?

  1. The JAR file should be located in $ JAVA_HOME/jre/classes/City.JAR.

  2. The JAR file should be located in javaprog/City.JAR and the class path environment should be set to include javaprog/City.JAR/Hostel.class.

  3. The JAR file should be located in $ JAVA_HOME/jre/lib/ext/City.JAR.

  4. The JAR file should be located in javaprog/City.JAR and the class path environment should be set to include javaprog/City.JAR/Warden.class.

Answer: C

Question No: 114 – (Topic 2)

Mark works as a Programmer for InfoTech Inc. He develops the following program. class iftest2

{public static void main(String args[])

{int x=0, y=1;if //code//{System.out.println(quot;truequot;);}}}

Which of the following if statements are illegal if they are placed at //code//?

A. (y == true)

B. (1)

C. (x == false)

D. (x == 1)

  1. (x)

  2. (x != y)

Answer: A,B,C,E

Question No: 115 – (Topic 2)

There are two threads defined in an application named quot;thread1quot; and quot;thread2quot;. Which of the following options can be the direct cause of quot;thread1quot; becoming blocked?

Each correct answer represents a complete solution. Choose all that apply.

  1. thread1 attempt to read from a file

  2. thread1 executes thread2.sleep(3000)

  3. thread2 executes thread1 sleep(3000)

  4. thread1 raises its own priority

  5. thread1 executes new Thread (someRunnable)

Answer: A,B

Question No: 116 – (Topic 2)

Which of the following authentications uses HTTPS (HTTP over SSL) to verify a user?

  1. CLIENT-CERT

  2. BASIC

  3. FORM-based

  4. DIGEST

Answer: A

Question No: 117 – (Topic 2)

Mary works as a Software Developer for ABC Solutions Inc. She writes the following code.

public class StringMethods {

public static void main(String[] args) { String str = new String(quot;abcquot;); str.concat(quot;xyzquot;);

StringBuffer strBuf = new StringBuffer(quot; 123quot;); strBuf.append(quot; noquot;);

System.out.println(str strBuf);}}

What will be the output when Mary tries to compile and execute the code?

  1. Compilation will fail.

  2. The program will print abc xyz 123 no when run.

  3. The program will print xyz 123 no when run.

  4. The program will print abc 123 no when run.

Answer: D

Question No: 118 – (Topic 2)

You develop an application. Now you want to ensure that data is sent between client and server in such a way that it cannot be changed in transit. Which of the following element declarations will be specified to satisfy the requirement of the application?

  1. lt;user-data-constraintgt;

    lt;transport-guaranteegt;INTEGRALlt;/transport- guaranteegt;

    lt;/user-data-constraintgt;

  2. lt;user-data-constraintgt;

    lt;transport-guaranteegt;CONFIDENTIALlt;/transport- guaranteegt;

    lt;/user-data-constraintgt;

  3. lt;user-data-constraintgt;

    lt;transport-guaranteegt;NONElt;/transport- guaranteegt;

    lt;/user-data-constraintgt;

  4. lt;auth-constraintgt;

lt;transport-guaranteegt;CONFIDENTIALlt;/transport- guaranteegt;

lt;/auth-constraintgt;

Answer: A

Question No: 119 – (Topic 2)

Which of the following statements make a message-driven bean different from a session bean?

Each correct answer represents a complete solution. Choose all that apply.

  1. Multiple clients can be processed by a single message-driven bean.

  2. A message-driven bean has only one bean class.

  3. Clients do not access message-driven beans through interfaces.

  4. The EJB container can assign a message to any message-driven bean instance because all instances of a message-driven bean are equivalent.

  5. Data or conversational state for a specific client cannot be retained by message-driven bean instances.

Answer: B,C

Question No: 120 – (Topic 2)

Which of the following syntaxes can be used to retrieve a URL to a resource specified as WEBINF/example/sessionObject.txt?

Note. Assume that session is an instance of the HttpSession interface, request is an instance of the HttpServletRequest interface, and context is an instance of the ServletContext interface.

  1. context.getResource (quot;/example/sessionObject.txtquot;)

  2. session.getResource (quot;/WEB-INF/example/sessionObject.txtquot;)

  3. request.getResource (quot;/WEB-INF/example/sessionObject.txtquot;)

  4. context.getResource (quot;WEB-INF/example/sessionObject.txtquot;)

  5. context.getResource (quot;/WEB-INF/example/sessionObject.txtquot;)

  6. request.getResource (quot;WEB-INF/example/sessionObject.txtquot;)

Answer: E

100% Free Download!
Download Free Demo:GSSP-Java Demo PDF
100% Pass Guaranteed!
Download 2017 EnsurePass GSSP-Java Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE