JSP interview questions
Q: 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.
Q: 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.
Q: What language is used by a relational model to describe the structure of a database?
A: The Data Definition Language.
Q: 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).
Q: 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.
Thursday, June 19, 2008
Subscribe to:
Post Comments (Atom)
Topics
- ActionScript (1)
- Ajax (1)
- Apache mod_SSL (1)
- Apache SSL (2)
- Backup a Certificate (1)
- CA (1)
- connection pooling (1)
- cryptography (1)
- CSR (1)
- CSR Generation Instructions- Tomcat (1)
- Database Connection Pooling with Tomcat (1)
- datasource connection (1)
- Difference between equals and hashCode method (1)
- Difference between JDBC and hibernate (1)
- Difference between String StringBuffer and StringBuilder (1)
- Different types of SQL Joins (1)
- digital certificate (1)
- Digital Certificate Enrollment (1)
- digital certificate installation (1)
- DOM (2)
- DTD (1)
- encryption (1)
- Events in Flex (1)
- Flex Data Access (1)
- generate certificate (1)
- Good Java Interview questions (1)
- Hibernate (1)
- Hibernate Interview questions (1)
- Hibernate Interview questions 1 (1)
- Hibernate Interview questions 2 (1)
- Hibernate Interview questions 3 (1)
- Hibernate Vs. iBatis? (1)
- https (2)
- Import Certificate (1)
- Java Web development interview questions (1)
- JavaInterviewQuestions (1)
- JavaScriptAJAXinterview (1)
- jdbc connection (1)
- JDBC Questions 1 (1)
- JDBC Questions 2 (1)
- JSP interview questions (1)
- Junit (5)
- links (1)
- Move a Certificate (1)
- Multithreading (1)
- MXML (1)
- private key (1)
- public key (1)
- Running multiple Tomcat instances on one server (1)
- SAX (1)
- SCHEMA (1)
- Secure Socket Layer (1)
- Servlet Questions 1 (1)
- Servlet Questions 2 (1)
- Servlet Questions 3 (1)
- ShellScriptingquestions (1)
- Simple Java Questions (1)
- Singleton Design Pattern (1)
- siteminder sso netegrity (1)
- SSL (3)
- StringBuffer versus String (1)
- Third Normal Form (1)
- Unix (1)
- What is connection pooling? (1)
- What's the difference between "PreparedStatement" and "Statement"? (1)
- What's the differences between object and object references? (1)
- XML (1)
- XML Questions 1 (1)
- XML Questions 2 (1)
No comments:
Post a Comment