Java Programming Language Java Interfaces And Abstract Classes MCQ
⚠ Report Question ✓ Question Verified
abstract class MyClass{ //line 1 private int a, b; public void call(int a, int b){ this.a = a; this.b = b; System.out.print(a+b); } } public class Test{ public static void main(String args[]){ MyClass m = new MyClass(); //line 2 m.call(12,25); } }
Learn More MCQ Questions from Java Programming Language Java Interfaces And Abstract Classes MCQ
Assess your knowledge of Java interfaces and abstract classes with these multiple choice questions. Learn about the difference between the two concepts and how to use them to create flexible and scalable Java programs. Take the quiz now!