Interview questions

JAVA interview questions – page 26

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

  1. What is the difference between ejbStore() and ejbLoad()

  2. What is the difference between the Font and FontMetrics classes?

  3. What is the difference between EAR, JAR and WAR file

  4. The real time environment , when do we go for abstract class and when do we go for interfaces , can any one please revert back in this regard?

  5. What is the significance of null interface in Java?

  6. Can undefined primary keys are possible with Entity beans? If so, what type is defined?

  7. What is a "Java Client" ?

  8. How will u pass the argument from one servlet to another servlet?

  9. What is the diffrence between JRE and JVM?

  10. What is difference between cgi and servlet in interview point

  11. How to get initialization time (init () method)values in servlet?

  12. Operations performed on vector are either posing a value into the vector (or) retriving a value from

  13. Can you make a method final, without making the whole class final?

  14. Can we declare final variables in side a method.

  15. What are the call back methods in Entity bean

  16. When we have the servlets/struts what is the perpose of EJB

  17. How come hashcodes can be the same even if objects aren't equal?

  18. Which class is extended by all other classes?

  19. What is difference between Servelt and Applet

  20. Is servlet is used to create a dynamic webpage or Static webpage or both?

  21. How will you propagate exception thrown inside session bean to JSP or Servlet client

  22. Difference between Applet and JApplet

  23. Do we have a constructor in servlet ? Can we explicitly provide a constructor in servlet program? Can we call "destroy" method from "init" method()? If so what will happen?

  24. What is default capacity of connection pool objects in pool of app-server Weblogic and Tomcat webserver?

  25. Can we call destroy() method on servlets from service method?

  26. When we increase the buffer size in our project using page directive attribute 'buffer' what changes

  27. How many ways we can destroy the servlet in ur program

  28. How do we prevent user to read secured page.. after logout

  29. Why init is used and not constructor for servlets initialization?

  30. What is upward and downward casting in Java?

Companies that ask JAVA questions