Interview questions
JAVA interview questions – page 24
2,804 questions. Tap “Show answer” to check yourself.
-
Suppose there are 15 links on the homepage of a site and each link creates a new request, how your servlet controller would handle it? (Assuming you are using MVC-2)
-
What are simple rules that a Primary key class has to follow
-
Types of Servlets?
-
How to get value from init() method in servlet? orHow to get initializaion time values from init() in servlet
-
How the server will know (i.e) when it can invoke init, service,destroy methods of servlet life cycle?
-
What is the super class of All servlets?
-
What method used to add a jsp to the servlet
-
What is the class containing all the methods as static?
-
What is meant by preintialization?
-
How can a servlet automatically updated by its data without refreshing?take one example of one sensex site. the corresponding data are shown in a scrolling manner. how they can automatically be refreshed after some time. without refreshing the page.
-
How you can activate or call one another servlet method?
-
What is the difference between Class.forName and registerDriver()
-
What is CMR
-
What is difference between array list and vector.? and which one is most useful.? array list does whatever vector does so why we need the array list?
-
What are the different types of Synchronization? Is there any other way of method or class or object locking
-
What is re-entrant. Is session beans reentrant. Is entity beans reentrant
-
What will happen when we call the destroy method in the init method? will the servlet exist?
-
How to count how many times aprticular link has been clicked using jsp and javascript
-
Imagine there is a class Employee. We create an object of EmployeeEmployee a= New Employee();If we are givingSystem.out.println(a);What gets printed?
-
Why are Java ARchive (JAR) files important?
-
What is the disadvantage of paint method in Applet
-
What is the difference between optimistic locking and pessimistic locking
-
Difference between wait and notify in java
-
In which conditions we have to use the ServletContext
-
Isn't it redundant to have to mark the methods final if the class is final?
-
What is Instance pooling?
-
Whats the difference between using invalidate() & sessionDestroyed for sessionclosing.
-
Why we write server side programs? what is its main purpose?
-
Have you used threads in Servelet
-
How can we call cmp?