73.
What is Recursion in Java?

75.
Which of these statement is incorrect?

76.
What will be the output of the following Java code?
class box 
{
    int width;
    int height;
    int length;
    int volume;
    void finalize() 
    {
        volume = width*height*length;
        System.out.println(volume);
    }
    protected void volume() 
   {
        volume = width*height*length;
        System.out.println(volume);
   } 
}    
class Output 
{ 
    public static void main(String args[])
    {
        box obj = new box();
        obj.width=5;
        obj.height=5;
        obj.length=6;
        obj.volume();
    } 
}

78.
What will be the output of the following Java program?
class recursion 
{
    int func (int n) 
    {
        int result;
        if (n == 1)
            return 1;
        result = func (n - 1);
        return result;
    }
} 
class Output 
{
    public static void main(String args[]) 
    {
        recursion obj = new recursion() ;
        System.out.print(obj.func(5));
    }
}

79.
What is true about private constructor?

Read More Section(Constructors and Methods)

Each Section contains maximum 100 MCQs question on Constructors and Methods. To get more questions visit other sections.