A - This attribute gives exact error message which can be stored and analysed after storing in a
java.lang.String data type.
B - This attribute gives information about exception type which can be stored and analysed after
storing in a java.lang.Class data type.
C - This attribute gives status code which can be stored and analysed after storing in a
java.lang.Integer data type.
D - This attribute gives information about URL calling the servlet and it can be stored and
analysed after storing in a java.lang.String data type.
Q 27 - Which of the following is true about javax.servlet.error.exception_type?
A - This attribute gives exact error message which can be stored and analysed after storing in a
java.lang.String data type.
B - This attribute gives information about exception type which can be stored and analysed after
storing in a java.lang.Class data type.
C - This attribute gives status code which can be stored and analysed after storing in a
java.lang.Integer data type.
D - This attribute gives information about URL calling the servlet and it can be stored and
analysed after storing in a java.lang.String data type.
Q 28 - Which of the following is true about javax.servlet.error.message?
A - This attribute gives exact error message which can be stored and analysed after storing in a
java.lang.String data type.
B - This attribute gives information about exception type which can be stored and analysed after
storing in a java.lang.Class data type.
C - This attribute gives status code which can be stored and analysed after storing in a
java.lang.Integer data type.
D - This attribute gives information about URL calling the servlet and it can be stored and
analysed after storing in a java.lang.String data type.
Q 29 - Which of the following is true about javax.servlet.error.request_uri?
A - This attribute gives exact error message which can be stored and analysed after storing in a
java.lang.String data type.
B - This attribute gives information about exception type which can be stored and analysed after
storing in a java.lang.Class data type.
C - This attribute gives status code which can be stored and analysed after storing in a
java.lang.Integer data type.
D - This attribute gives information about URL calling the servlet and it can be stored and
analysed after storing in a java.lang.String data type.
Q 30 - How to create a cookie in servlet?
A - Use new operator.
B - Use request.getCookie method