Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


if u havea .class file ,how can u say whether it is servlet
or not ,dont use java decompliler

Answers were Sorted based on User's Feedback



if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler..

Answer / kunal

Just Use Reflection to get its SuperClass. If this super
class is Any of Servlet class like HttpServlet or
GenericServlet then this class is a servlet...

Is This Answer Correct ?    7 Yes 0 No

if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler..

Answer / mamta

when we open .class file if it contain
javax/servlet/Servlet ,javax/servlet/http/HttpServlet
this shows it is a servlet

Is This Answer Correct ?    4 Yes 1 No

if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler..

Answer / amitasite

1) Use Reflection API
2) Configure web.xml and configure <servlet> and <servlet-
mapping>. Send request to the URL. If it is not servlet
then will throw exception like
javax.servlet.ServletException: Class
com.request.TestServlet is not a Servlet

Is This Answer Correct ?    1 Yes 0 No

if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler..

Answer / reddy

when we open the .class file
it my contains something like
;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/
HttpServletRespons

where as simple java .class file will not contain this

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Servlets Interview Questions

When to use doget() and when dopost()?

0 Answers  


What is the difference between RequestDispatcher and sendRedirect?-

5 Answers   CTS,


Describe servlet?

0 Answers  


What is servlet and list its types?

0 Answers  


How the JSP file will be executed on the Server side?

0 Answers   Cap Gemini,


How do we share data using 'getservletcontext ()?

0 Answers  


How can we create deadlock situation in servlet?

0 Answers  


if we know the any consultancies, it will place in company work through consultancy(contract base). please help me I'm 2008 pass out java candidate...

1 Answers  


what is OOAS

2 Answers   iGate,


Is it possible to call servlet with parameters in the URL?

4 Answers  


What are the uses of servlet and what is servlet chaining?

0 Answers  


How we can call a jsp from the servlet?

0 Answers  


Categories