The source code of VeryDull2.java: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class VeryDull2 extends HttpServlet { private int counter = 0 ; public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html") ; PrintWriter out = response.getWriter() ; out.println("<!DOCTYPE HTML PUBLIC " +"\"-//W3C//DTD HTML 4.01 " +"Transitional//EN\">") ; out.println("<html>") ; out.println(" <head>") ; out.println(" <title>Hello</title>") ; out.println(" </head>") ; out.println(" <body>") ; out.println(" <h1>Hello 2</h1><hr>") ; out.println(" Hello") ; synchronized (this) { // This prevents interference during the critical increment and report phase counter++ ; out.println("<br> The counter is <b>" + counter +"</b>") ; } out.println(" <br>and goodbye") ; out.println(" </body>") ; out.println("</html>") ; } // doGet } // class