Programming Tutorials

Interview Tutorials

31. Explain the new Features of JDBC 2.0 Core API?

By: Karthik : 2012-06-16

Description: Answer: The JDBC 2.0 API includes the complete JDBC API, which includes both core and Optional Package API, and provides inductrial-strength database computing capabilities. New Features in JDBC 2.0 Core API:


32. Explain garbage collection?

By: Karthik : 2012-06-16

Description: Answer: Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. User program cann't directly free the object from memory, instead it is the job of the garbage collector to automatically free the objects that are no longer referenced by a program.


33. Explain the Encapsulation principle.

By: Karthik : 2012-06-16

Description: Answer: Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper.


34. Explain the Polymorphism principle.

By: Karthik : 2012-06-16

Description: Answer: The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism can be explained as "one interface, multiple methods".


35. Explain the different forms of Polymorphism.

By: Karthik : 2012-06-16

Description: Answer: From a practical programming viewpoint, polymorphism exists in three distinct forms in Java:


36. What are Access Specifiers available in Java?

By: Karthik : 2012-06-16

Description: Answer: Access specifiers are keywords that determines the type of access to the member of a class. These are:


37. What do you understand by JSP Actions?

By: Karthik : 2012-06-16

Description: JSP actions are XML tags that direct the server to use existing components or control the behavior of the JSP engine. JSP Actions consist of a typical (XML-based) prefix of "jsp" followed by a colon, followed by the action name followed by one or more attribute parameters.


38. What is the difference between jsp:include page and @ include file?

By: Karthik : 2012-06-16

Description: Both the tag includes the information from one page in another. The differences are as follows:


39. What is the difference between jsp:forward and response.sendRedirect(url)

By: Karthik : 2012-06-16

Description: The <jsp:forward> element forwards the request object containing the client request information from one JSP file to another file. The target file can be an HTML file, another JSP file, or a servlet, as long as it is in the same application context as the forwarding JSP file.


40. What are implicit Objects available to the JSP Page?

By: Karthik : 2012-06-16

Description: Answer: Implicit objects are the objects available to the JSP page. These objects are created by Web container and contain information related to a particular request, page, or application. The JSP implicit objects are: