servlet: its a java class so for every change we have to
compile the code to reflect the change.Mainly using for
writing business logics.
jsp:its a file, its automatically converted into a servlet
on deploying. We can’t compile it explicitly.the changes
will get reflect by saving the file.Its mainly used for
presentation of data.....