Interview questions

JAVA interview questions – page 32

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

  1. How can you include a static file in JSP page. is it possible in html style sheet. which one is better jsp's include directive ("<%@include="filename"%>) or html's style sheet.

  2. How Do you implement interface in JSP?

  3. How to build struts in java? What are the function of struts?

  4. Can we make Action class,DAOclass without Formclass

  5. What is the advantage if a person have Java + LDAP Skills

  6. How are commas used in the initialization and iteration parts of a for statement?

  7. How do u maintain a Session?

  8. Web browser concept using jsp

  9. Why "bytecode"? Can you reverse-engineer the code from bytecode?

  10. What is the purpose of the wait(), notify(), and notifyAll() methods?

  11. What is the default scope of jsp tags?

  12. How to call EJB from JSP.

  13. What is the correct syntax for removing ActionMessages from the session context?

  14. How can my JSP communicate with java class file

  15. What data is stored in the variable appname when we give the folowing statement String appname=("manager".equalsIgnoreCAse(request.getContextPath()))?"/manager":"/portal";

  16. What do you mean by marker interfaces? While no methods are presented in the marker interfaces,then what is the need of having them? In what circumstances we will use marker interfaces?

  17. In struts why we use jsp as view( presentation)? what happen if we use servlet as view?

  18. Why Java is not fully objective oriented

  19. What is internationalisation? How can you achieve in java?

  20. What is difference between getAttribute() and getParameter()?

  21. Why we use static method in Business Logic?

  22. What is an object's lock and which object's have locks?

  23. What is the difference between Java API & Applets.

  24. Where do we use hidden variables and url rewriting? and wat is the difference between them?

  25. How can we implement logoutpage using jsp ..?and Is there any method to force the browser to show the same page again and again after logout..?

  26. Text in textarea cant be copy by anyone while it is running in the browser (i.e,the text cant be copy and then paste on the other page) give me suggestion?

  27. My html form contains an INPUT "text" element that accepts Date, i want to catch that date and want to query it using JSP? In short, how can i use that HTML form element with Prepared Statements in JSP?

  28. What is the use of JRE and jar files. what is different between JRE and jar files.

  29. What is ActionMapping ?

  30. Is there any way to put my custom name to LIB folder which i am going to place in WEB-INF folder of struts application?

Companies that ask JAVA questions