 The Java applet API is now deprecated since Java 8 in 2017.Java servlet technology provides Web developers with a simple, consistent mechanism for extending the functionality of a Web server and for accessing existing business systems.Servlets are server-side Java EE components that generate responses (typically HTML pages) to requests (typically HTTP requests) from clients.