Answered Questions

  • JVM is platform independent/dependent? why?

    which one is faster in execution Array List or Array? why?

    Gaurav Singh

    • Mar 12th, 2018

    No, JVM is not platform independent. It is Platform dependent.

    Kailash Dofe

    • Jul 5th, 2017

    JVM is platform dependent, each OS has its own JVM version. What makes JAVA platform independent is this platform dependent JVM. This JVM helps the intermediately compiled JAVA code(bytecode) to run o...

  • What is the difference between GenericServlet and HttpServlet?

    GenericServlet is for servlets that might not use HTTP, like for instance FTP service.As of only Http is implemented completely in HttpServlet. The GenericServlet has a service() method that gets called when a client request is made. This means that it gets called by both incoming requests and the HTTP requests are given to the servlet as they are.

    Priyanka Garkal

    • Feb 25th, 2018

    1.GenericServlet is base class of HttpServlet And HttpServlet is derived class of GenericServlet. 2.GenericServlet have abstract service() method whether HttpServlet has seven methods which can repla...

    Abhishek yadav

    • Apr 23rd, 2015

    Generic servlet can use only service method but in Http we use doGet ()& doPost ().
    Http servlet are protocol dependent but generic servlet are protocol independent..
    Best of luck!