Interface Java Interview Questions – Set 05

When does the compiler insist that the class must be abstract If one or more methods of the class are abstract. If class inherits one or more abstract methods from the parent abstract class and no implementation is provided for that method If class implements an interface and provides no implementation for those methods How … Read more

Multi Threading Java Interview Questions – Set 05

What method is invoked to cause an object to begin executing as a separate thread? The start() method of the Thread class is invoked to cause an object to begin executing as a separate thread. Why do threads block on I/O? Threads block on I/O (that is enters the waiting state) so that other threads may execute while the … Read more

Applet AWT Swing Java Interview Questions – Set 04

Can you describe the architecture of a medium-to-large scale system that you actually designed or implemented? Can you white board the components of the system you recently worked on? How would you go about designing a JEE shopping cart application? Can you discuss some of the high level architectures you are experienced with There are … Read more

API Testing Interview Questions – Set 04

What are the major challenges faced during API testing? The major challenges faced during the API testing are: Parameter Selection Parameter Combination Call sequencing Output verification and validation A major challenge is providing input values which are very difficult because GUI is not available. What are the limits of API usage? Many APIs have certain … Read more

Core Java Interview Questions – Set 04

What is the immediate superclass of Menu MenuItem. What is the purpose of a statement block A statement block is used to organize a sequence of statements as a single statement group. What is a native method? A native method is a method that is implemented in a language other than Java Which containers use … Read more

Collections Java Interview Questions – Set 04

What do you know about the big-O notation and can you give some examples with respect to different data structures The Big-O notation simply describes how well an algorithm scales or performs in the worst case scenario as the number of elements in a data structure increases.  The Big-O notation can also be used to … Read more

JSP Java Interview Questions – Set 04

What are the life-cycle methods of JSP Life-cycle methods of the JSP are: jspInit(): The container calls the jspInit() to initialize the servlet instance. It is called before any other method, and is called only once for a servlet instance. _jspService(): The container calls the _jspservice() for each request and it passes the request and … Read more

Exception Handling Java Interview Questions – Set 04

 What can prevent the execution of the code in finally block ? and what are the rules for catching multiple exceptions? The death of thread – Use of system.exit() – Turning off the power to CPU – An exception arising in the finally block itself Rules for catching multiple exceptions – A more specific catch … Read more

Web Services Interview Questions – Set 04

How are the terms “Platform independent” and “Diverse Application” are related to each other in the context of XML-RPC? The terms “Platform independent” and “Diverse Application” were related to each other because XML-RPC uses HTTP for transporting SOAP messages over the web. The HTTP is a universal standard protocol for exchanging information on the Web. … Read more

Servlet Java Interview Questions – Set 04

How do you pass data (including JavaBeans) to a JSP from a servlet?- ?– (1) Request Lifetime: Using this technique to pass beans, a request dispatcher (using either “include” or forward”) can be called. This bean will disappear after processing this request has been completed. Servlet: request. setAttribute(”theBean”, myBean); RequestDispatcher rd = getServletContext(). getRequestDispatcher(”thepage. jsp”); … Read more