Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.4k views
in Programming by (103k points)
closed by

Which of the following statement(s) is/are TRUE regarding Java Servelets?

(a) A Java Servlet is a server-side component that runs on the webserver and extends the capabilities of a server.

(b) A Servelet can use the user interface classes like AWT or Swing.


1. Only (a) is TRUE.
2. Only (b) is TRUE.
3. Both (a) and (b) are TRUE.
4. Neither (a) nor (b) is TRUE.

1 Answer

0 votes
by (106k points)
selected by
 
Best answer
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.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...