What is servlet and how we can create it?
A servlet is simple a Java class that runs in a web container. Servlets are difficult, it better to learn jsp. They are easier to learn and they are translated to Servlets at compile time. So knowing jsp you can build web applications in Java. Go learn J2EE.