Answered Questions

  • How do you make a class not instantiable

    A) Making class as AbstractB) Having a Private constructorC) Making the class sealedD) Both A & B

    Naveen Kumar Shivanadri

    • Sep 8th, 2016

    Answer is A is always correct and B is also correct only the situation when the class does not have the static methods on it (in the question, there is no mentioned that there is no static method in it)
    So, only A is correct answer.

    Naveen Kumar Shivanadr.

    ramya

    • Oct 13th, 2015

    Making class as Abstract