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.
E. servlet-class Answer(s):
C, D QUESTION:
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();
public void start()
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
B. A compile-time error wil occur indicating that no run () method is defined for the Thread
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):
Which of the following classes is an engine class that provides an opaque representation of