Java Interview Questions

Java Questions 11

  1. What is RMI architecture?- RMI architecture consists of four layers and each layer performs specific functions: a) Application layer - contains the actual object definition. b) Proxy layer - consists of stub and skeleton. c) Remote Reference layer - gets the stream of bytes from the transport layer and sends it to the proxy layer. d) Transportation layer - responsible for handling the actual machine-to-machine communication.
  2. what is UnicastRemoteObject?- All remote objects must extend UnicastRemoteObject, which provides functionality that is needed to make objects available from remote machines.

Java Questions 12

  1. What are JSP ACTIONS?- JSP actions use constructs in XML syntax to control the behavior of the servlet engine. You can dynamically insert a file, reuse JavaBeans components, forward the user to another page, or generate HTML for the Java plugin. Available actions include: jsp:include - Include a file at the time the page is requested. jsp:useBean - Find or instantiate a JavaBean. jsp:setProperty - Set the property of a JavaBean. jsp:getProperty - Insert the property of a JavaBean into the output. jsp:forward - Forward the requester to a newpage. Jsp: plugin - Generate browser-specific code that makes an OBJECT or EMBED

Simple Java Questions

  1. Meaning - Abstract classes, abstract methods
  2. Difference - Java,C++
  3. Difference between == and equals method
  4. Explain Java security model
  5. Explain working of Java Virtual Machine (JVM)
  6. Difference: Java Beans, Servlets
  7. Difference: AWT, Swing
  8. Disadvantages of Java
  9. What is BYTE Code ?
  10. What gives java it’s “write once and run anywhere” nature?
  11. Does Java have “goto”?
  12. What is the meaning of “final” keyword?
  13. Can I create final executable from Java?
  14. Explain Garbage collection mechanism in Java
  15. Why Java is not 100% pure object oriented language?

Newbie Java Questions

  1. If Runnable interface is better than Thread class, than why we are using Thread class? What is the need for Thread class?
  2. Why we are calling System.gc() method to garbage collection of unused object, if garbage collection is automatically done in Java by daemon thread in background process with regular interval?
  3. What is the significance of Marker interface? Why are we using, even though it has no method?
  4. Why we are always doing rs.next() in first line of while loop in retrieving data from database through result set?

General Java Servelet Questions

  1. What is the servlet?
  2. What are the JSP atrributes?
  3. What is the need of super.init(config) in servlets?
  4. How to know whether we have to use jsp or servlet in our project?
  5. Can we call destroy() method on servlets from service method?
  6. What is the Servlet Interface?
  7. What is the difference between GenericServlet and HttpServlet?
  8. How we can check in particular page the session will be alive or not?
  9. What is the importance of deployment descriptor in servlet?
  10. When we increase the buffer size in our project using page directive attribute ‘buffer’ what changes we observe?

Pages (21): « First ... « 15 16 17 [18] 19 20 21 »