A servlet is a class, so your question makes no sense.