Interview questions

JAVA interview questions – page 18

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

  1. Are constructors inherited? Can a subclass call the parent's class constructor? When?

  2. What is the difference between EJB 3.0 and Hibernate?

  3. How many methods in the Serializable interface?

  4. What is the AWS Toolkit for Eclipse?

  5. What do you mean by multiple inheritance in C++ ?

  6. How many methods in the Externalizable interface?

  7. What is the difference between CMP and BMP?

  8. When to use constructors?

  9. What is the function of all 9 implicit objects(application ,session,request,response,out,page,pageContext,config,exception)?

  10. What Class.forName( ) method will do?

  11. What packages are used by JDBC?

  12. Which method is static synchronized in JDBC API _________

  13. What is different between tier and 3 tier?

  14. String class can be extendable? and why?

  15. In a large-scale multi-threaded environment, how might you organise access to a shared resource (such as a database connection)?

  16. Why do I get an error if I attempt to start the MedRec Server on a system that uses a proxy to connect to the Internet?

  17. Discuss why Java 5 Executors are the preferred mechanism of creating and dispatching work in separate threads, over either directly creating Thread objects or directly using a pool of threads?

  18. Where are the examples located?

  19. Can we override Thread's run() method?

  20. Can anyone explain me the accurate difference between heap and stack in memory usage of java... it is highly appreciable if i get the answer with real time example or examples...

  21. What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?

  22. Can I have members of different record length in a single PDS?

  23. How statefull session bean remembers it's client state

  24. How to get the resultset of stroedProcedure

  25. What are the steps to do connection pooling in weblogic?

  26. How can you create JDBC statements?

  27. What is an EJB Context?

  28. How do you implement Connection Pooling?

  29. How to configure with struts application by using Eclipse 3.1 Ide.

  30. I have 2 session beans sb1 & sb2. In session bean 2 there is a bussiness exception occurs. If I don't want to rollback the transaction in sb1 which declartive transaction attribute I have to use in both beans?

Companies that ask JAVA questions