Interview questions

JAVA interview questions – page 27

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

  1. How to position TextField in a frame so that it Should look Good.And in a manner that next one will come in next row of the first appeared.

  2. If session has thrown ApplicaitonException would you use EJBContext.setRollBackOnly method

  3. How can we do bug tracking in an intranet project for a pharmaceutical company using java,jdbc,ejb sevlet using oracle as backend can anyone guide?

  4. What is the difference between importing a classand creating the object for that class

  5. Why arraylist(and other classes) cantnot be synchronized

  6. Where should u use reflection in ur project? give me one example?

  7. What is handle in EJB

  8. Difference between Enumeration and Iterator

  9. What is Producer, Consumer

  10. How to call a COM object within java?

  11. What is default Session time out in the servers like Tomcat, Weblogic, JBoss,..etc?

  12. Why Concept Of Pointer is not there in java

  13. What is lazy loading

  14. Can i know what are methods that a classloader calls when it is loading the class

  15. When should we extend JavaBean class?

  16. Why not declare an ArrayList if you want to hold ints?

  17. What is the % operator?

  18. Suppose number of servlets/jsps from various web applications want to access shared data, what is the mechanism to achieve the same?

  19. What is difference between servlet and ASP?

  20. What are the JSP atrributes?

  21. What is the command pattern ?where it is used?

  22. Can we set the time (by user) explicitly for garbage collection.?

  23. What is differents between forword(),include() and sendRedirect()? In which circumtances all are used? Give Proper Examles

  24. What about protecting static variable state? If you have static methods that change the static variable state, can you still use synchronization?

  25. How many layout's are there in java? explain each one of them

  26. Can we write destroy() method in the init() method of a Servelt.if we can, what will happen?if we cant , why we cant?

  27. What is the difference between ServetConfig and ServletContext..?

  28. What is autoboxing?

  29. What is the difference between find and select methods in EJB

  30. How to integare struts and hibernate

Companies that ask JAVA questions