ExamVeda
Login
Home
61
Which of these is not a correct statement?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following Java code?
class Output 
{
    public static void main(String args[])
    {
         Object obj = new Object();
   System.out.print(obj.getclass());
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
63
Which of the following is used for implementing inheritance through an interface?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
64
Which of these is correct way of inheriting class A by class B?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
65
What will be the output of the following Java program?
class A 
{
    public int i;
    public int j;
    A() 
    {
        i = 1;
        j = 2;
}
}    
class B extends A 
{
    int a;
    B() 
    {
        super();
    } 
}    
class super_use 
{
    public static void main(String args[])
    {
        B obj = new B();
        System.out.println(obj.i + " " + obj.j)     
    }
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
66
Which of these packages contains abstract keyword?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
67
Which of these class relies upon its subclasses for complete implementation of its methods?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
68
Which of these keywords can be used to prevent inheritance of a class?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
69
Static members are not inherited to subclass.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
70
Which of these keywords are used to define an abstract class?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board