Stay with Java
More concepts here on Core java, JDBC, JMS, Servlets, JSP, Struts, Spring, Hibernate and many......
What is MIME Type?
The “Content-Type” response header is known as MIME Type. Server sends MIME type to client to let them know the kind of data it’s sending. It helps client in rendering the data for user. Some of the mostly used mime types are text/html, text/xml, application/xml etc.
We can use ServletContext getMimeType() method to get the correct MIME type of the file and use it to set the response content type. It’s very useful in downloading file through servlet from server.
What is different between web server and application server?
A web server responsibility is to handler HTTP requests from client browsers and respond with HTML response. A web server understands HTTP language and runs on HTTP protocol.
Apache Web Server is kind of a web server and then we have specific containers that can execute servlets and JSPs known as servlet container, for example Tomcat.
Application Servers provide additional features such as Enterprise JavaBeans support, JMS Messaging support, Transaction Management etc. So we can say that Application server is a web server with additional functionalities to help developers with enterprise applications.
What will happen if you put return statement or System.exit () on try or catch block ? Will finally block execute?
finally block will execute even if you put return statement in try block or catch block but finally block won't run if you call System.exit() from try or catch.
Click here to claim your Sponsored Listing.
Category
Website
Address
Hyderabad
500072