Answered Questions

  • What is String Pool?

    Damanpreet Singh

    • Sep 4th, 2018

    String Pool is a separate memory location in Class Information Area which is differ from Heap. Anything which we write in double quotes always stored in String Pool

    Gurumurthy Ramamurthy

    • Mar 12th, 2018

    String Pool or String Constant Pool or String Literal Pool refers to an area of HEAP where the String objects are stored. Once the String object is created in this area, cant be removed by garbage co...

  • What happens when we call destroy() method in init() method in servlets

    Yogesh

    • May 9th, 2017

    Nothing Special. It will just execute normal methods. But, it wont work like life cycle method. When JVm invokes these methods then only it will execute like life cycle method.

    Ashwani Gupta

    • Apr 29th, 2016

    overriding init() method wont do any special effect here since web containers initializes the servlets by calling init() method with ServletConfig object as parameter and not the init() method without...