Interview questions

JAVA interview questions – page 37

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

  1. Why Java is not 100% pure object oriented language?

  2. What is difference between an Abstract class and Interface?

  3. What is the difference between java and core java

  4. What is Java Card ?

  5. How do you invoke a Servelt. What is the difference in between doPost and doGet methods?

  6. How can we use hashset in collection interface?

  7. Differences between servlet context and servlet config?

  8. What is difference between java.lang .Class and java.lang.ClassLoader?

  9. How an Hashtable can change the iterator? Can a HashMap change the iterator?

  10. What is CDPD?

  11. What do u mean constructor in java ?

  12. What is the difference between the paint() and repaint() methods?

  13. Which TextComponent method is used to set a TextComponent to the readonlystate?

  14. Is there any provision in java to find the address of a particular memory location?(like & in 'C' language)

  15. Why there are some null interface in java. What does it mean. Give me some null interfaces in JAVA?

  16. What restrictions are placed on the values of each case of a switch statement?

  17. What is CDMA2000?

  18. Why do I get a NullPointerException when loading a JAR file into the BeanBox?

  19. In Java, You can create a String object as: String str = "abc"; & String str = new String("abc");Why

  20. What exactly is volatile & please tell the at what situation we use this key-word and please give an example as well

  21. Which on is best string or string buffer?which one is mutable and immutable?

  22. To what value is a variable of the String type automatically initialized?

  23. What are the main differences between Java and C++?

  24. What is the difference between String and StringBuffer? Which is better to use in project?

  25. Why default constructor of base class will be called first in java?

  26. Please Give me an example for User defined Exception

  27. What if you need to span your transaction across multiple Servlet invocations ?

  28. What modifiers may be used with an inner class that is a member of an outerclass?

  29. What is Connection Pooling mechanism?

  30. How can we done caching of servlet? How can we log out from a page? What is the difference between JspWriter & PrintWriter?

Companies that ask JAVA questions