Interview questions

JAVA interview questions – page 28

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

  1. What are the uses of Servlets?

  2. What is meant by Tomcat in java and its usage?

  3. How many ServletConfig and servlet context objects are present in one application?

  4. Why we can't put semicolon at the end of a class in java?

  5. What is the servlet?

  6. Doesn't the compiler always make a no-arg constructor for you?

  7. Can we write bussiness methods in servlets? if yes, then how can u access that from out side of the servlets?

  8. Difference between HashMap and TreeMap

  9. How can you do ErrorMapping in Action class?

  10. Is stateless Sessiob bean create() method contains any parameters

  11. What is it reflection (introspection) ? Why is reflection possible in the Java language?

  12. Can I develop an Entity Bean without implementing the create() method in the home interface

  13. Does Java has pointer?

  14. Explain StringBuffers and StringTokenizers?

  15. We have two applications in that we have two servlets each.How they(servlets) communicate with each other ?

  16. What is session tracking ?state the uses of GET and POST request to handle Http request ?

  17. In servlets, what is the use of sendredirect(),include( ), forward() ?and in applecation level at what scnario they will be used

  18. What is EJB architecture(components)

  19. How is Stateful Session bean maintain their states with client

  20. What is the difference between run-time Polymorphism and compile-time Polymorphism?

  21. What is abstract schema

  22. Consider a scenario where 2 instances of an appserver are running in a machine. And one application has been deployed in the two servers. Does these two applications deployed in two servers use the same JVM or different?

  23. Why is that we deploy servlets in a webserver.What exactly is a webserver?

  24. Suppose in web.xml file we are given 30 and in the servlet program we are given setSessionInActiveInterval(40).when that session will be terminated ? After 30 sec or 40 sec?

  25. How does >> operater works ?

  26. How to know whether we have to use jsp or servlet in our project?

  27. IS String is a wrapperclass? explain wrapper class

  28. Why operator overloading is not allowed in Java?

  29. How we can find the total number of processors available in system?

  30. What is list interface?

Companies that ask JAVA questions