Following is J2EE 1 mark questions of BCA SEM-5 please give true answer. 1) Application is divided into client side and server side called______ . 2) next() is the method of______... Following is J2EE 1 mark questions of BCA SEM-5 please give true answer. 1) Application is divided into client side and server side called______ . 2) next() is the method of______ . 3) What are Servlets? 4) Give Syntax to create a cookie using servlet? 5) Why Remote interface inherits? 6) What is the use of HttpSessionInterface? 7) What is JavaBeans? 8) What is Annotation? 9) What is Stateless Bean? 10) Explain the time service EJB. 11) In which year Spring was developed? 12) What is the use of FormBean in Struts? 13) How many ways to perform Dependency Injection in Spring framework?
Understand the Problem
The question is a series of short-answer questions focused on J2EE concepts and Java programming, aimed at getting factual or conceptual information about various topics in the field of software development, particularly related to Java. This includes understanding of servlets, beans, annotations, and frameworks like Spring and Struts.
Answer
1) Client-Server Architecture 2) ResultSet 3) Java server programs 4) Cookie cookie = new Cookie('name','value'); response.addCookie(cookie); 5) java.rmi.Remote 6) Track session 7) Reusable software components 8) Program metadata 9) No conversational state 10) Timer Service 11) 2002 12) Represent forms 13) Constructor and Setter Injection
- Application is divided into client side and server side called 'Client-Server Architecture'. 2) next() is the method of 'ResultSet'. 3) Servlets are Java programs that extend the capabilities of a server. 4) Syntax to create a cookie using servlet: Cookie cookie = new Cookie('name','value'); response.addCookie(cookie); 5) Remote interface inherits 'java.rmi.Remote'. 6) HttpSessionInterface is used to track user session information. 7) JavaBeans are reusable software components for Java that can be manipulated visually in a builder tool. 8) Annotation provides data about a program that is not part of the program itself. 9) Stateless Bean is an enterprise bean that does not maintain a conversational state with the client. 10) EJB Timer Service is used for automatic timeout notifications of enterprise bean timers. 11) Spring was developed in 2002. 12) FormBean in Struts represents forms on the server side. 13) There are two main ways to perform Dependency Injection in Spring: Constructor Injection and Setter Injection.
Answer for screen readers
- Application is divided into client side and server side called 'Client-Server Architecture'. 2) next() is the method of 'ResultSet'. 3) Servlets are Java programs that extend the capabilities of a server. 4) Syntax to create a cookie using servlet: Cookie cookie = new Cookie('name','value'); response.addCookie(cookie); 5) Remote interface inherits 'java.rmi.Remote'. 6) HttpSessionInterface is used to track user session information. 7) JavaBeans are reusable software components for Java that can be manipulated visually in a builder tool. 8) Annotation provides data about a program that is not part of the program itself. 9) Stateless Bean is an enterprise bean that does not maintain a conversational state with the client. 10) EJB Timer Service is used for automatic timeout notifications of enterprise bean timers. 11) Spring was developed in 2002. 12) FormBean in Struts represents forms on the server side. 13) There are two main ways to perform Dependency Injection in Spring: Constructor Injection and Setter Injection.
More Information
J2EE (Java 2 Platform, Enterprise Edition) simplifies application architecture by abstracting repetitive tasks and allowing developers to focus on creating business logic. Elements like EJB (Enterprise JavaBean) and Servlets are core to ensuring robust enterprise solutions.
Tips
Common mistakes include assuming all beans are stateful; Stateless Beans do not maintain a state. Misunderstanding HttpSession vs. cookies can lead to session management errors.
Sources
- Top 49 J2EE Interview Questions (2024) - Javatpoint - javatpoint.com
- Top 50 J2EE Interview Questions (2024) - Career Guru99 - career.guru99.com
AI-generated content may contain errors. Please verify critical information