Interview questions

JAVA interview questions – page 33

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

  1. What are the disadvantages of using threads?

  2. Which containers may have a MenuBar?

  3. In struts how can i validate the values filled into the text boxes or else using DynaValidatorForm,without using javascript.Actually with javascript it is working perfect but not without javascript, and i want without javascript?

  4. A] Is the response.sendRedirect ends the existing session?B] If I logged in to a site ( say a.com) & then in same browser window I type the url for another site (say b.com), then does my session gets ended on first site ( a. com ) ?

  5. What is the action mapping

  6. How to generate BAR & PIE Graphs using JSP code...?

  7. What is the diff. b/n declaring members in and declaraing in jspinit() method ?

  8. Whats meant by struts?how to use struts in IBM websphere appli. ?and how to managed with struts?(plz answer simply just an intro. don't go very deep)

  9. What is the difference between a static and a non-static inner class?

  10. What is jsp:usebean. What are the scope attributes & difference between these attributes

  11. Why should we setContentType() in servlet ?what is the use of that method?

  12. What is the differences between JSP LifeCycle and Servlet LifeCycle?

  13. In which pattern does all the action classes in the struts are organized

  14. What synchronization constructs does Java provide? How do they work?

  15. When we design some login form how we manage security for those forms?which technology used for that purpose?

  16. Why do you create interfaces, and when MUST you use one?

  17. In Oracle table some fields are "null".By default it will show as "null" in JSP page text box.But i dont want that. I want as blank textbox.What i can do for that?

  18. What is the diff between perform() and execute() method?

  19. How do we perform redirect action without using response.sendRedirect(" ");

  20. Is it possible to refer a resource in another webapplication using ServletContext.getRequestDispatcher()? if yes how it can?

  21. How can we move from one JSP page to another(mean using what tecnique?)

  22. How can i clear values in sessions.if i open a jsp page it is containing previous values.then i need to open a new page then only i am getting a fresh page

  23. What method is invoked to cause an object to begin executing as a separatethread?

  24. How are this() and super() used with constructors?

  25. How the jsp changes will be effected in servlet file after converting?

  26. In Internet explorer if we give a jsp , How the server will know it has to execute?

  27. How are Java source code files named?

  28. What is the difference betweeen JSP forward and servlet forward methods?

  29. When we need of abstract class and interface?could you please tell me the realtime example?

  30. Can a single JSP page be considered as a J2EE application?

Companies that ask JAVA questions