Java J2EE Interview Questions
Questions Answers Views Company eMail

How can an existing session be invalidated?

655

How the typical servlet code look like ?

629

How are filters?

572

Why is httpservlet declared abstract?

574

What are the functions of an intercepting filter?

482

When to use doget() and when dopost()?

622

How the servlet is loaded?

591

A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

600

Should I override the service() method?

662

What are some advantages of storing session state in cookies?

585

What’s the use of the servlet wrapper classes??

626

What is the need of session tracking in web application?

575

What are the new features added to servlet 2.5?

583

How a servlet is unloaded?

585

What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

553


Un-Answered Questions { Java J2EE }

What happens if we don’t override run method ?

558


What are the different class loaders used by jvm?

585


What is java api for xml processing (jaxp)?

550


What does entitymanager merge do?

161


How do I restrict access to servlets and jsps? : BEA Weblogic

542






What are the 8 data types in java?

515


What file types you can deploy into websphere?

528


What is reflexive association?

995


What is difference between lazy loading and eager loading in hibernate?

172


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

695


Why should we close database connections in java?

678


Why do you need orm tool like hibernate?

137


Should a main method be compulsorily declared in all java classes?

521


What are the restrictions imposed by a Security Manager on Applets?.

2055


Which access specifier can be used with class ?

524