Interview questions

JAVA interview questions – page 31

2,804 questions. Tap “Show answer” to check yourself.

  1. What is the difference between Message producer and Message consumer

  2. When two entity beans are said to be identical? Which method is used to compare identical or not?

  3. How to get one Servlet's Context Information in another Servlet?

  4. What is difference between try and throws, as these are two different methods to handle the exceptions.

  5. How differ servlets from its peer technology?

  6. What is the difference between activation and passivation

  7. WHAT IS THE DIFFERENCE BETWEEN MULTI-THREADING AND MULTI-PROCESSING?

  8. Why java.lang Package is the Default package?

  9. Name four Container classes?

  10. What is the architecture of JSP?

  11. What is the difference between , page directive include, action tag include ?

  12. What is the difference between the String and StringBuffer classes?

  13. In struts what happens if made any changes in actionservlet?

  14. Can we use any other technology than JSP to construct a view ?

  15. How to pass java script array to jsp page?

  16. Why we can't implement interface in JSP? Why we can only extend classes in JSP?

  17. When we are saving form bean ,What is the difference between session scope and request scope.

  18. How we abort jsp page from a servlet

  19. Can I call an interface in a JSP?

  20. What is the difference between Difference between doGet() and doPost()?

  21. How can i restrict the user from Clicking of Back button in anybrowser

  22. What happens when you invoke a thread's interrupt method while it is sleeping or waiting?

  23. When to use struts technology? What type of applications are developed using struts frame work?

  24. What are the default objects provided by JSP container? Other than page, request, session and context objects.

  25. What is the perfect definition of an Adapter class, explain with an example

  26. How can initialize interface in JSP?

  27. What is the need of implicit objects?

  28. I have linux OS.I installed Tomcat 4. in Linux.Now, i have to deploy My web application into that using WAR file.Please tell me steps...and also steps for the creating the WAR file too.

  29. What is the difference betweeen a statis and dynamic include?

  30. I want to place two buttons one for save and one for delete.i am using DispatchAction as controller,how can i find which button i am pressing and how to diffrentiate?

Companies that ask JAVA questions