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
1000+ TNPSC Group 1 Previous Year Question Paper Pdf More
1000+ TNPSC Chemistry Study Materials Pdf More
TNPSC Group 1 Last 10 Years Question Papers with Answers Pdf More
1000+ General English Quiz Questions and Answers Pdf More
5001+ General English MCQ for Competitive Exam Pdf More
1000+ DC Circuits Objective Questions and Answers Pdf More
GATE Mechanical Engineering Question Papers with Solutions More
1000+ Aptitude Number System Questions and Answers More
100+ Reading Comprehension Passages Questions for Bank Exams More
Industries Quiz Questions and Answers More