Static HTML: Regular HTML, of course, cannot contain dynamic information. JavaScript: JavaScript can generate HTML dynamically on the client but can hardly interact with the web server to perform complex tasks like database access and image processing etc. Server-Side Includes (SSI): SSI is really only intended for simple inclusions, not for “real” programs that use form data, make database connections, and the like. Pure Servlets: It is more convenient to write (and to modify!) regular HTML than to have plenty of println statements that generate the HTML. Second, it is portable to other operating systems and non-Microsoft Web servers. Active Server Pages (ASP): The dynamic part is written in Java, not Visual Basic or other MS specific language, so it is more powerful and easier to use. Q.2 What are the advantages of using JSP over other technologies? JSP does not require additional files like java class files, web.xml etcĥ) JSP is built on Java technology, so it is platform independent. In JSP, we can use a lot of tags such as action tags, JSTL, custom tags etc. The servlet code needs to be updated and recompiled if we have to change the look and feel of the application. If JSP page is modified, we don’t need to recompile and redeploy the project. In servlet technology, we mix our business logic with the presentation logic.ģ) Fast Development: No need to recompile and redeploy JSP can be easily managed because we can easily separate our business logic with presentation logic. In addition to, we can use implicit objects, predefined tags, expression language and Custom tags in JSP, that makes JSP development easy. We can use all the features of a servlet in JSP. JSP technology is the extension to servlet technology. Hibernate Supports automatic versioning of rows but JDBC Not.Read first part – 101 Most Important Frequently Asked Advance Java Interview Questions -Part1 Advance Java Interview Questions Q.1 What are the Advantages of JSP over Servlet? You can load your objects on start up using lazy=false in case of Hibernate. In the xml file you can see all the relations between tables in case of Hibernate. In case of JDBC you need to write your own connection pool. No need to create any connection pool in case of Hibernate.You can use c3p0. JDBC Not provides any statistics.ĭevelopment fast in case of Hibernate because you don't need to write queries. Hibernate supports Query cache and It will provide the statistics about your query and database status. In case of JDBC you need to implement your java cache. Hibernate support two level of cache.First level and 2nd level.So you can store your data into Cache for better performance. In case of JDBC you need to tune your queries. In case of JDBC you need to learn SQLĭon't need Query tuning in case of Hibernate.If you use Criteria Quires in Hibernate then hibernate automatically tuned your query and return best result with performance. In case of JDBC query must be data base specific.Īs Hibernate is set of Objects,you don't need to learn SQL language.You can treat TABLE as a Object.Only Java knowledge is need. Hibernate is data base independent, your code will work for all ORACLE,MySQL ,SQLServer etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |