QUESTION: 1
Which of the following elements are the subelements of the mime-mapping element in a
deployment descriptor file?
Each correct answer represents a complete solution. Choose all that apply.
A. exception-type
B. error-code
C. extension
D. mime-type
E. servlet-class
Answer(s): C, D
QUESTION: 2
John works as a Software Developer for VenTech InC. He writes the following code using Java.
public class vClass extends Thread
{
public static void main(String args[])
{
vClass vc=new vClass();
vc.run ();
}
public void start()
{
for(int k=0;k<20;k++)
{
System.out.println("The value of k = "+k);
}
}
}
What will happen when he attempts to compile and execute the application?
A. The application will compile successfully and the values from 0 to 19 wil be displayed as the
output.
B. A compile-time error wil occur indicating that no run () method is defined for the Thread
class.
C. A runtime error wil occur indicating that no run () method is defined for the Thread class.
D. The application will compile successfully but wil not display anything as the output.
Answer(s): D
QUESTION: 3
Which of the following classes is an engine class that provides an opaque representation of
cryptographic parameters?
A. DSAPublicKeySpec
B. AlgorithmParameterGenerator
C. DSAParameterSpec
D. AlgorithmParameters