You are not logged in.

#1 2015-11-04 07:06:00

Muhammad
User RankUser RankUser RankUser RankUser RankUser Rank
بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ
From: Sahiwal Division
Registered: 2012-03-22
Posts: 22,197
Website

What will be the output, when accessing the following servlet?

Java Quizzes SCWCD (Sun Certified Web Component Developer)

Question:
What will be the output, when accessing the following servlet

import javax.servlet.http.*;

public class TestServlet extends HttpServlet {

}

Option A):
Blank Screen
Option B):
HTTP 404, error message.
Option C):
Runtime Error
Option D):
Compiler Error
Option E):
HTTP 405, error message.

Correct Answer is Option E):
HTTP 405, error message.

Explanation:
Since HttpServlet is providing a default implementation for Http Methods, it will not give any compile time or run time error. But the default implementation will give an HTTP 405 error message (At least in BEA Web logic server).


Online Web Tutorials And Interview Questions With Answers Forum:
https://globalguideline.com/forum/

2015-11-04 07:06:00

Advertisement
Ads By Google

Re: What will be the output, when accessing the following servlet?



\n

Board footer