Which of the following statements are correct about the code given below?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following statements about the
Each correct answer represents a complete solution. Choose all that apply.
Rachel works as a Software Developer for Vivanet Inc. She writes the following code using Java.
class catchexcp
{public static void metha()
{int x=4/0;System.out.print("Caught exception");}
public static void main(String args[])
{try{metha();}catch(ArithmeticException ae){System.out.print("Caught ArithmeticException");}finally{try{metha();}catch(ArithmeticException ae){System.out.print("ReCaught ArithmeticException");}}}}
What will happen when she tries to compile and execute the code?
Which of the following init() method calls initializes a cipher object with a key in the SECRET_MODE?
Mary works as a Software Developer for XYZ Inc. She writes the following code.
1. class Alpha {
2. public static class Beta { }
3. }
4. class Delta {
5. // insert code here
6. }
Which of the following code statements can be inserted at line 5 to create an instance of the Beta class defined in the class Alpha?
Which of the following statements about serialization are true?
Each correct answer represents a complete solution. Choose all that apply.
Mark develops an application using Java language. He writes the following code snippet in the application.
public class mClass{
public static void main(String args[]){
try{
return;
}
finally{System.out.print("Finally");}}}
What will happen when Mark attempts to compile and execute the code snippet?
Which of the following statements about a JAR file command are true?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following statements about the isCallerInRole() method are true?
Each correct answer represents a complete solution. Choose all that apply.
You have created a Java application that will retrieve and insert data into a database table. Which of the following objects will you use to pass the JDBC Driver to obtain a connection to the database server?