GIAC GSSP-Java - GIAC Secure Software Programmer – Java
Which of the following declarations are the valid declaration for the
Each correct answer represents a complete solution. Choose all that apply.
Mark works as a Programmer for InfoTech Inc. He creates an error page named
PageDoesNotExist.jsp. He wants to ensure that the PageDoesNotExist.jsp page will always be displayed if the server cannot find the requested page or if the request is for a page that does not exist on the server. Which of the following error-page code declarations will be used?
You have the following code of a PreparedStatement.
PreparedStatement stm = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?");
Which of the following statements are true about a PreparedStatement?
Each correct answer represents a complete solution. Choose all that apply.
You work as a Software Developer for UcTech Inc. You want the deployment descriptor to contain entries for the authentication type and the security realm. In order to accomplish this, you have to use the sub-elements of the
Each correct answer represents a complete solution. Choose all that apply.
The java.util.logging package provides the classes and interfaces of the Java platform's core logging facilities. Which of the following are the main target uses of logs?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following circumstances can prevent the execution of code in a finally block?
Each correct answer represents a complete solution. Choose two.
Which of the following are the advantages of JAR files over TAR files?
Each correct answer represents a complete solution. Choose all that apply.
Mark works as a Programmer for InfoTech Inc. He develops the following code snippet.
import java.util.*;
public class DemoSet{
public static void main(String[] args){
TreeSet
ts.add("Sunday");
ts.add("Friday");
ts.add("Wednesday");
ts.add("Sunday");
ts.add("Monday");
Iterator it = ts.iterator();
while(it.hasNext()){
System.out.print(it.next() + " ");
}
}
}
What will be the output when he tries to execute the given code snippet?
Mark works as a Programmer for InfoTech Inc. He develops the following code snippet.
package Mark.tutorial.javaee.ejb;
import java.util.logging.Logger;
import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.ejb.Timeout;
import javax.ejb.Timer;
import javax.ejb.TimerService;
@Stateless
public class TimerBean implements TimerSessionBean {
@Resource
TimerService timerService;
private static final Logger logger = Logger.getLogger
("com.sun.tutorial.javaee.ejb.timersession.TimerSessionBean");
public void createTimer(long intervalDuration) {
Timer timer = timerService.createTimer(intervalDuration, "New timer created");
}
@Timeout
public void timeout(Timer timer) {
logger.info("Timer Timeout");
}
}
which of the following statements are true about the code?
Each correct answer represents a complete solution. Choose all that apply.
A security manager is an object that defines a security policy for an application. Which of the following is used by security managers to indicate security domains?
