Correct Answer - Option 1 : Only (a) is TRUE.
The correct answer is option 1.
EXPLANATION
STATEMENT (a):
A Java Servlet is a server-side component that runs on the webserver and extends the capabilities of a server.
The above statement is TRUE.
STATEMENT (b):
A Servlet can use the user interface classes like AWT or Swing.
A Servlet cannot use the user interface classes like AWT or Swing. Servlets can respond to any type of requests, they most commonly implement web containers for hosting web applications on web servers and thus qualify as a server-side servlet web API.
The above statement is FALSE.
Hence the correct answer is Only (a) is TRUE.