ExamVeda
Login
Home
This question belongs to Java Program Inheritence
Inheritence
?

What will be the output of the following Java code?
class A 
{
     int i;
int j;
     A() 
     {
         i = 1;
         j = 2;
     }
}
class Output 
{
     public static void main(String args[])
     {
          A obj1 = new A();
    System.out.print(obj1.toString());
     }
}

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.