Interview questions

JAVA interview questions – page 44

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

  1. How can you achieve Multiple Inheritance in Java?

  2. Why java is not 100% oops

  3. Explain variable shadowing with example?

  4. Why there is no guarentee for System.gc() method will perform garbage collection for a particular time?

  5. Why java does not support multiple inheritance.why we go for interfaces

  6. What is the difference between a while statement and a do statement?

  7. How to define an Abstract class?

  8. Why we use OOPS concepts, What is its advantage?

  9. What is the latest version of JDBC. What are the new features are added in that?

  10. What is the basic difference between Java and .Net

  11. Disadvantages of Java

  12. How will you pass parameters in RMI. Why u serialize?

  13. How do i upload a file from client side to server side using servlet and jsp this will happen when I click upload button on web-page?

  14. Solve it... public class test {public static void main(String[] args) {int i=5;i=i++;System.out.println("result::"+i);}}The result wil be 5..!! and not 6 why?

  15. Can a lock be acquired on a class?

  16. How and when to prevent inheritance?

  17. What is the purpose of tiles-def.xml file, resourcebundle.properties file, validation.xml file?

  18. Name the eight primitive Java types?

  19. How to compare Stringbuffer objects?

  20. What are externizable interface?

  21. What is the difference between Enumeration and Iterator?. When i can use Enumeration and when i can use iterator?. Can any one tell me the situation that only Enumeration could able to solve that problem and vice versa.

  22. What is a Singleton class, what is it's significance?

  23. What is JBoss JBPM?

  24. Why will I want to integrate Hibernate service into JBoss?

  25. Is the InfoBus client side only?

  26. Why is the JavaBeans Bridge for ActiveX only available on Windows/X86?

  27. What is CDC?

  28. What are the Differences between Tread class and Runnable ?

  29. What are differences between Enumeration, ArrayList, Hashtable and Collections and Collection?

  30. What is achieved by inheritance?

Companies that ask JAVA questions