Interview questions

JAVA interview questions – page 16

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

  1. What does the "abstract" keyword mean in front of a method? A class?

  2. Which of the statements is true regarding loading a driver in JDBC.1. registerDriver(Driver driver).2. Class.forName(java.lang.String driverclass)

  3. What is the difference between JavaBean and EJB

  4. How to Create Object without using the keyword "new" in java?

  5. What is return type of create method of an entity bean

  6. What open source projects are based on Eclipse?

  7. Why won't the examples work?

  8. What are the main differences between jdk1.4 n jdk1.5?

  9. What is meant by Serialization and Externalization? Serialization is a Marker interface,so what is the use of WriteObject() anf ReadObject(), Where it is actually used? Give me some real time examples?

  10. JDBC provides facility to store the java objects by using following methods of the PreparedStatement.1. setObject ()2. setBlob()3. setClob()

  11. How to achieve clustering and connection pooling in ejb

  12. What's the difference between TYPE_SCROLL_INSENSITIVE , and TYPE_SCROLL_SENSITIVE?

  13. What is the difference between a NULL pointer and a void pointer?

  14. What is the definition of arraylist? plz write in brief.

  15. Access specifiers: "public", "protected", "private", nothing?

  16. How differ servlet from its peer Technology?

  17. Why do we override the execute method is struts?

  18. Why do we use prepared statement when already statement is present

  19. Which Driver is preferable for using JDBC API in Applets.

  20. What is the difference between instanceof and isInstance?

  21. Define lexical analysis?

  22. What is hybernate and spring? can u suggest any books or documents so that i can go through?

  23. What is default state of session bean in a ejbjar.xml

  24. What is the difference between Java and J2EE?

  25. How many statements can be created with one connection?

  26. When you will chose Stateful session bean and Stateless session bean?

  27. Why multiple inheritance is not possible in java without using Interfaces?

  28. Just by seeing the signature of the bean how can you specify whether it is a Stateful or Stateless Session Bean?

  29. How can you configure Type-4 driver in cleandesktop?

  30. What should I do if my cluster "hangs" or "freezes"?

Companies that ask JAVA questions