Question 6 of 225In which of the following cases is the GET method used to retrieve information? Each correct answer represents a complete solution. Choose all that apply.
Correct Answer: A, B, C
Question 7 of 225Which of the following code is used to create an object of security manager?
Correct Answer: C
Question 8 of 225Which of the following methods returns a Cipher object that implements the specified transformation?
Correct Answer: D
Question 9 of 225Mark works as a Programmer for InfoTech Inc. He develops the following code snippet. 1. public class Header 2. { 3. //code// 4. { 5. System.out.println("Print the code."); 6. super.finalize(); 7. } 8. } Which of the following header statements should be placed at line 3 to execute the program successfully?
Correct Answer: C
Question 10 of 225Dennis 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?