Interview questions

JAVA interview questions – page 6

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

  1. How do you know that where to use abstract class or interface?

  2. What is new in JDBC 2.0?

  3. What JDBC objects generate SQLWarnings?

  4. Which Java and java.sql data types map to my specific database types?

  5. Are there any components or add-ons that must be installed on the SAP Systems in order to work with SAP JCo?

  6. How can i retrieve from inside my Bean(Stateless session and Entity CMP) the user name which i am serving (the user name of user just logged in my web application)?

  7. What are the implicit objects in JSP & differences between them?

  8. Which is the preferred collection class to use for storing database result sets?

  9. What is entity reference ?

  10. What does it mean to "materialize" data?

  11. What is pessimistic concurrency?

  12. How can I enable session tracking for JSP pages if the browser has disabled cookies?

  13. How to move the cursor in scrollable resultset ?

  14. What is Enterprise JavaBeans Query Language?

  15. How can I connect from an applet to a database on the server?

  16. How can I use the JDBC API to access a desktop database like Microsoft Access over the network?

  17. What is servlet ,what is the use of it?

  18. What is the difference between a Driver and a DataSource (in Java JDBC)?

  19. What is meant by polymorphism in java? How can we achieve polymorphism? Explain with an example.

  20. How are the implicit object made available in the jsp file? Where are they defined?

  21. What is Log4j in java

  22. How do I implement a RowSetReader? I want to populate a CachedRowSet myself and the documents specify that a RowSetReader should be used. The single method accepts a RowSetInternal caller and returns void. What can I do in the readData method?

  23. What is the difference between array list and linked list. in which situations we are use them? which is best one?

  24. What is cohesion and coupling in java?

  25. How can I secure the communication between SAP JCo and an SAP System?

  26. What is the first statement in construtor?

  27. Is there a way to reference the "this" variable within a JSP page?

  28. Solve it... public class test {public static void main(String[] args) {int i=5;i=i++;System.out.println("result::"+i);}}

  29. What's the JDBC 3.0 API?

  30. What are the considerations for deciding on transaction boundaries?

Companies that ask JAVA questions