How do you compile java servlets?

Answer:
Servlets are like other/normal Java classes. they can be compiled using the javac command.
First answer by Anandvijayakumar. Last edit by Anandvijayakumar. Contributor trust: 782 [recommend contributor recommended]. Question popularity: 1 [recommend question].