Java Programming
Compilation error An exception is thrown at run time. The variable first is set to null. The variable first is set to elements[0]
Method overloading Method overriding The variable first is set to null none of the above
Method overloading. Constructor overloading Method overriding None of above.
m1() m2() Both m1() and m2() can override None of above
Method overloading is used in same class only Constructor overloading is used in same class only Method overriding is used in base class and derived class ALL
Class A method. Class B method Compilation Error runtime Error
Number of score out of 7 = Score in percentage =