Select the correct option to test your answer:
Computer
Interfaces And Abstract Classes
Difficulty: Medium
What will be the output? interface A{ public void method(); } class One{ public void method(){ System.out.println("Class One method"); } } class Two extends One implements A{ public void method(){ System.out.println("Class Two method"); } } public class Test extends Two{ public static void main(String[] args){ A a = new Two(); a.method(); } }
More Computer Questions
Impact printers
Which of the error is raised when the quantity of data is too much?
What should be expression1 evaluate to in using ternary operator as in this line? expression1 ? expression2 : expression3
1 KB (Killobyte) is equal to ______?
Matrices can be created by row-binding with the help of the following function.