Header Ads

ad728
  • Latest Posts

    Advantage of Java Servlet

    Java Servlet having many advantage in which some are listed below :-

    • Capability to Run In-Process
    • Compiled
    • Crash-Resistant
    • Cross Platform
    • Durable
    • Dynamic Loading
    • Multi threaded
    • Protocol Independent
    • Cross Server
    • Written in Java

    1. Capability to Run In-Process :- Servlets are run in-process and that's why it are loaded only once. Servlets are multi threads that'y  why servlets can respond many  clients request by making different thread. Due to this capability for processing request of every client there is no need of to create new process.
      Threads
    2. Compiled :- Servlets are compiled in Java byte code, due to this they execute fast. Due to compilation error and type checking facility also provided. Due to compilation servlets are more stable and they are so easy to develop and debug. Compiled code are also more compact.
    3. Crash Resistant :- Srevlets are secured from crash. Since servletts are  written in java code and these are executed by the help of JVM(Java Virtual Machine) and in JVM these are not access directly by the memory that's why these are not crashed. Along with this before the execution JVM verifying that which is Java Class Files are going to compile is that valid or not.     
    4. Cross Platform :- Due to capacity of "write once-run anywhere" of Java, servlets can distribute on every platform without rewrite. Servlets works same as on every platform without any modification.
    5. Durable :- Servlets is durable class object means it stay in memory up till, until it not to be destroy. Therefore servlets to be initiate at only once for many request. By the  help of a servlet you can also create many Class Objects. Like :- On the first time of loading a database connection is created by servlet and connection can be shared with all the request 
    6. Dynamic Loading :- Servlet can be dynamically load on local or network. Whereby this is conformed that unused servlets are not using system resources. These are load only on the time of need..
    7. Multi Threaded :- Since Java is multi threaded that's why servlet also is multi threaded. Therefore by only a process all client request can be handle. This approach need less resources and it execute to be fast.
    8. Protocol Independent :- Again since Java is a protocol independent programming language therefore servlets also be a multithreaded. Therefore  servlets can work on File Transfer Protocol-FTP Commands, Post Office Protocol-POP3, HTTP, Simple Mail Transfer Protocol-SMTP, Telnet and all others protocols.
    9. Cross Server :- Servlets mainly can work on every web server.
    10. Written in Java :- Since srevlets are written in java, therefore these providing many facilities. These facilities are :- True OOPs Based language, Strong Type Checking, Optimized Code, Multithreading Support, Built-in Network Support and Built-in Internationalization by the help of Unicode.
    These all are the advantages of Java servlet. So friends please give me feedback how was the post in comment.
    I think you may like another post on my blog.

    2 comments:

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728