Home / MCQ Bank / Computer
Computer Interfaces And Abstract Classes Difficulty: Medium

What is the result of the following code snippet? interface MyInterface { static void myMethod() { System.out.println("Static Method"); } } class MyClass implements MyInterface { public static void main(String[] args) { MyInterface.myMethod(); } }

Select the correct option to test your answer:

More Computer Questions

Which storage class is often used for variables with block scope within functions? Which of the following is not the pseudo class for CSS Basic UI Level3? A(n) __________ is an Extensible Scheme Standard file that is an approved W3C standard design as a basic infrastructure. How can you achieve polymorphism in C++? What will be the output of the following Python code? def addItem(listParam): listParam += [1] mylist = [1, 2, 3, 4] addItem(mylist) print(len(mylist))