Interview questions

JAVA interview questions – page 25

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

  1. What is the disadvantage of the ServerSideIncludes?

  2. How can a Variable in a class other than String type be made Immutable.

  3. What is the use of ActionForm class, Describe it's Life Cycle

  4. Must i place all my class files in the WEB-INF folder and all JSP's outside?

  5. How much amount of information will be stored within a session

  6. Where exactly we make use of Clone objects in a real time?

  7. With EJB 1.1 specs, why is unsetSessionContext() not provided in Session Beans, like unsetEntityContext()

  8. When does JIT plays its role. Does JIT come along with jdk? If so then what is role of interpreter?

  9. What is difference between EJB 1.1 and EJB 2.0

  10. What are the services provided by container

  11. What methods will be called in which order?((i.e)service(),doget(),dopost())

  12. What is the difference between Eclipse3.0 and Jbuilder tool?

  13. What is the purpose of using Java Beans?

  14. What is the default size of vector and StringBuffer?

  15. How big is a reference variable?

  16. What are the differences between GET and POST service methods?

  17. What is the importance of deployment descriptor in servlet?

  18. Why multiple inheritace is not supported through classes in java ?

  19. What are the drawbacks of Struts

  20. Can we serialize the static members?

  21. In normal javabean, bean object is serailizable,and Connectuin object is transient object.Then How we using javabean for communnication between Servlet and JSP for data Transfer?

  22. What is servlet context and what it takes actually as parameters?

  23. How are the elements of a BorderLayout organized?

  24. What is class variables and instance variables?

  25. How do to prevent user by viewing secured page by clicking back button when session expired..:)

  26. Why would I want to make a class final? Doesn't that defeat the whole purpose of OO?

  27. What happens in Integer.parseInt() if the thing you pass isn't a number? And does it recognize spelled-out numbers, like "three" ?

  28. If a class has two synchronized functions, a thread enters one of the synchronized function, then is it possible for another thread to enter the second synchronized function?

  29. Servlet is Java class. Then why there is no constructor in Servlet ? Can we write the constructor in Servlet

  30. What is the difference between a Window and a Frame?

Companies that ask JAVA questions