GIAC GSSP-Java - GIAC Secure Software Programmer – Java
Which of the following elements of the java.util.logging package exports objects to a variety of destinations including memory, output streams, consoles, files, and sockets?
Which of the following statements about the
Each correct answer represents a complete solution. Choose all that apply.
Dennis works as a Programmer in Broadnet Inc. He writes the following program.
1. public class Ques0307{
2. public static void main(String[] argv){
3. int arr[] = {1, 2, 3, 4};
4. try{
5. int k = 0;
6. for(; k < 4; k++)
7. arr[k] = arr[k] + 1;
8. System.out.println("try");
9. }
10. catch(ArrayIndexOutOfBoundsException a){
11. System.out.println("index " +k +" not found");
12. }
13. catch(Exception e){
14. System.out.println("catch1");
15. }
16. finally{
17. System.out.println("finally");
18. }
19. }
20. }
What will happen when Dennis attempts to compile and execute the program?
Which of the following options are available with jar files?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following is used to restore the objects that have been previously serialized by a stream?
Which of the following statements are true?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following
Which of the following methods are overridden by the FileInputStream class?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following statements about a native modifier in Java are true?
Each correct answer represents a complete solution. Choose two.
Harry works as a Software Developer for SoftTech Inc. He has developed a Java application to perform various SQL statements such as INSERT, UPDATE, etc., against a database table named Employee. He has used the executeUpdate() method to perform various SQL queries and to know the exact affected rows in the database if any of the operations is performed against the database table.
Which of the following types of values is returned by this method?