The site for java interview questions, Jobs for Freshers.High-Salary Jobs,C Interview,Java Codes,Java Books,Java Resumes,Java String,Quiz Test,C FAQ,Java Struts,Java EJB,Java JSP..net Interview questions,
RSS Feed (xml)
Skin Design: Free Blogger Skins
JSP interview questions1. What are the most common techniques for reusing functionality in object-oriented systems?A: The two most common techniques for reusing functionality in object-oriented systems are class inheritance and object composition.Class inheritance lets you define the implementation of one class in terms of another’s. Reuse by subclassing is often referred to as white-box reuse.Object composition is an alternative to class inheritance. Here, new functionality is obtained by assembling or composing objects to get more complex functionality. This is known as black-box reuse.2. Why would you want to have more than one catch block associated with a single try block in Java?A: Since there are many things can go wrong to a single executed statement, we should have more than one catch(s) to catch any errors that might occur.3. What language is used by a relational model to describe the structure of a database?A: The Data Definition Language.4. What is JSP? Describe its concept.A: JSP is Java Server Pages. The JavaServer Page concept is to provide an HTML document with the ability to plug in content at selected locations in the document. (This content is then supplied by the Web server along with the rest of the HTML document at the time the document is downloaded).5. What does the JSP engine do when presented with a JavaServer Page to process?A: The JSP engine builds a servlet. The HTML portions of the JavaServer Page become Strings transmitted to print methods of a PrintWriter object. The JSP tag portions result in calls to methods of the appropriate JavaBean class whose output is translated into more calls to a println method to place the result in the HTML document
Post a Comment
No comments:
Post a Comment