Interview questions

JAVA interview questions – page 15

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

  1. How we deploy in weblogic?

  2. Which of the following values can be replaced in the place of 1 and 2 belowStatement stmt = con.createStatement(1, 2);

  3. Why JAVA not support multiple inheritance? How can we pass address of an object?

  4. Does each stateless session bean have its own EJBObject?

  5. How can we connect database in java without using the Class.forname() method with our application?

  6. What is class in class.forname()?

  7. Can we write any static block or any static method in jsp program?

  8. How many different types of JDBC drivers are present? Discuss them.

  9. What is the priority of main thread in java? and why?

  10. Can I use a "native" two-tier driver for a browser applet?

  11. Can we use session beans & entity beans in single application?

  12. What are some advantages and disadvantages of Java Sockets?

  13. Which are features in EJB 2.0 ? and which are features in EJB 3.0?

  14. Are there any other 'marker' interfaces?

  15. How do I know what the develper named the bean?

  16. Write a code to count the no. of 1?s in a binary representation of a number?

  17. What happens when an interface extends another interface?

  18. How you can delete a particular record from jcl? That is a file(PS) has 50 records, i need to delete the 5th record without any condition, how you will do it?

  19. System Class is Used to Output text onto the Screen?it True or False

  20. Write a basic structure of an EJB session bean class.

  21. What is the difference between concat and append?

  22. What is JDBC? Describe the steps needed to execute a SQL query using JDBC.

  23. What are the parameters used in Connection pooling?

  24. What is EJB Query Language

  25. How EJB will be registered in JNDI.

  26. Why java is system independent?

  27. What is stored procedure. How do you create stored procedure?

  28. What is the protocol is used in type4 driver?

  29. What information that the ServletResponse interface gives the servlet methods for replying to the client?

  30. How to configure the jdbc driver in welogic server? What are all the necessary jar files to be used?

Companies that ask JAVA questions