Java Servlet Interview Questions for Freshers Pdf - 1
What is JSTL?
JSTL is also called JSP tag libraries.
They are collection of custom actions which can be accessed as JSP tags.
What is the difference between JavaBeans and taglib directives?
JavaBeans and taglib fundamentals were introduced for reusability. But following are the major difference between them
Taglib are for generating presentation elements while JavaBeans are good for storing information and state.
Use custom tags to implement actions and JavaBeans to present information.
What are the differences between Servlets and Applets?
Servlets are server side components that runs on the Servlet container.
Applets are client components and run on the web browsers.
Servlets have no GUI interface.
Servlet are server side components that execute on the server whereas applets are client side components and execute on the web browser.
Applets have GUI interface but there is not GUI interface in case of Servlets.
What are the uses of Servlets?
Servlets are used to process the client request.
A Servlet can handle multiple requests concurrently and be used to develop high performance system.
A servlet can be used to load balance among several servers, as servlet can easily forward requests.
What is JSP Scriptlet?
JSP Scriptlet is a jsp tag which is used to enclose a java code in the JSP pages.
Scriptlets begins with <% tag and ends with %> tag. Java code written inside scriptlet executes every time the JSP is invoked.
// java codes
String userName = null;
username = request.getParameter (“userName”) ;
- Java Servlets and JSP Interview Questions and Answers
- Java Servlet Interview Questions for Freshers Pdf
- Java Servlet Interview Questions and Answers for Experienced Pdf
- Top 150+ Java Servlet Interview Questions and Answers
- Java Concurrency Interview Questions and Answers
- Advanced Java Interview Questions and Answers
- Tricky Servlet Interview Questions and Answers
- 150+ Advanced Java Servlet API Interview Questions 2020-2021
7000+ Gate Computer Science Engineering Previous Year Questions More
7000+ Fill in the Blanks with Suitable Homonyms More
7000+ Fill in the Blanks with Suitable Homophones More
Power Semiconductor Device and Integrated Circuits MCQ Questions Pdf More
7000+ Synonyms, Antonyms Questions for SSC CGL Pdf More
1000+ Distributed Control Systems Objective Questions and Answers More
7000+ Generation of Computer Questions and Answers Pdf More
Inventions and Discoveries Online Test | Gk Questions and Answers More
PG TRB Physics Study Materials 2020 - 2021 More
Top 100+ Indian Polity Gk Questions and Answers 2019-2020 More