Beans Java Interview Questions – Set 03

What are the different types of IoC (dependency injection There are three types of dependency injection: Constructor Injection(e.g. Spring): Dependencies are provided as constructor parameters. Setter Injection(e.g. Spring): Dependencies are assigned through JavaBeans properties (ex: setter methods). Interface Injection(e.g. Avalon): Injection is done through an interface. In your experience, why would you use Spring framework … Read more

Beans Java Interview Questions – Set 02

What are the four types of J2EE modules? Application client module Web module Enterprise JavaBeans module Resource adapter module How can I set a cookie in JSP?- response. setHeader(”Set-Cookie”, “cookie string”); To give the response-object to a bean, write a method setResponse (HttpServletResponse response) – to the bean, and in jsp-file:<% bean. setResponse (response); %> … Read more

Beans Java Interview Questions – Set 01

What is binding (JavaServer Faces technology) ? Wiring UI components to back-end data sources such as backing bean properties. What is caller principal ? The principal that identifies the invoker of the enterprise bean method. What is backing bean ? A JavaBeans component that corresponds to a JSP page that includes JavaServer Faces components. The … Read more

Beans Java Interview Questions

Beans Java Interview Questions – Set 03 Beans Java Interview Questions – Set 02 Beans Java Interview Questions – Set 01