Is there any difference between explicitly returning at the end of doGet or doPost-methods, and just letting the method return "by itself"?
public void doGet(HttpSerlvetRequest req, HttpServletResponse resp) {
<my code here>
return;
}
public void doGet(HttpSerlvetRequest req, HttpServletResponse resp) {
<my code here>
}
No. As a regular void
method, it does not require a return