Interview questions

JAVA interview questions – page 30

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

  1. Can we override the service method?if we can do that then why do we override only doGET()and doPost() methods if the servlet is of protocol specific?

  2. What is the difference between a normal servlet and action servlet?

  3. How do you know the port number of the server program you want to talk to?

  4. How to check for repeated patterns in a password?

  5. I want to know how to encode textbox in servlet so we find complete column information from the database

  6. How is rounding performed under integer division?

  7. Name the eight primitive Java type.

  8. What is the difference between servlets and applets?

  9. If i create a object which is to be serialized then do I need to implement any methods?

  10. What is the use of voltile specifier

  11. Can some one pls tell me the exact difference between mutable and immutable ?

  12. Can we have 3 methods in a single servlet i.e service(), doPost() and doGet() method. If yes, then what method will be called. Tell me the servlet cycle in such cases

  13. Why main method should be declared as public and why in some versions it is mandatory and in some versions it is not mandatory?

  14. What is the use of System.err.println()?, explain clearly what is System.err.println()?, what r the access specifiers available in System class?

  15. How Servlet Applet communication achieved?

  16. What is the difference between local interface and remote interface

  17. What is the lifecycle of Entity Bean

  18. I can get the size(length) of any array (let a[]) by a.length. please tell me what is this "length" word actually signifies, where it is defined in java and what is its actual definition ?

  19. What is JMS

  20. What is the use of JMS? In which situations we are using JMS? Can we send message from one server to another

  21. Is it true the JAVA is realy a plateform indepandent?

  22. What is the difference between JNDI context, Initial context, session context and ejb context

  23. Why CMP beans are abstract classes?

  24. What is the difference between strsuts 1.0 and struts 1.1 ?

  25. What is components and controllers in Java

  26. How can I retrive only IntegerObjects from a vector in which I stored all types of objects

  27. What is the difference between throw and throws clause, explain in programatically

  28. What is the capacity of Hashtable()?

  29. When you have action=get?

  30. Is Decorator an EJB design pattern

Companies that ask JAVA questions