Java Interview Questions
1.What is the difference between apache webserver, java webserver and tomcat server?
Apache is an HTTP server written in C that can be compiled and run on many platforms. Java WebServer is an HTTP server from Sun written in Java that also supports Servlets and JSP. Tomcat is an open-source HTTP server from the Apache Foundation, written in Java, that supports Servlets and JSP. It can also be used as a "plug-in" to native-code HTTP servers, such as Apache Web Server and IIS, to provide support for Servlets (while still serving normal HTTP requests from the primary, native-code web server). Tomcat behind Apache with a connector .apache web server is a webserver where as tomcat is a servlet container. Apache is what your browser connects to, tomcat is what apache connects to to ask for servlets to be processed. However, tomcat now includes a webserver so you can cut out the middle man. You might not want to do this on a large production environment. Apache is a general-purpose http server, which supports a number of advanced options that Tomcat doesn't. Although Tomcat can be used as a general purpose http server, you can also set up Apache and Tomcat to work together with Apache serving static content and forwarding the requests for dynamic content to Tomcat. This is generally prefered when using tomcat because the overhead from serving static content directly from Apache is much lower than having Tomcat handle all of the requests
2.What is the difference between Web Site and Web Browser?
Web site is the client base system( or said to collection of web pages contains information interact with user or client) use to interact over the network Web Browser is the applicaction or tool use to run web pages or web site.
3.Difference between web server and application server?
Webserver: A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology. Whatever their purpose, such server-side programs generate a response, most often in HTML, for viewing in a Web browser. Application Server: As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP. While a Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home