Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
super
:
Content language: English
Русский
What is the result of the following code compilation and execution? class A { private static void test1() { System.out.println("A.test1"); } static void test2() { test1(); } } public class B extends A { void test1() { System.out.println("B.test1"); } static void test2() { super.test2(); } public static void main(String[] args) { A a = new B(); a.test2(); } }
super
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes