Что произойдет в результате компиляции и запуска следующего кода:

public class Bar extends Foo {               // 1
    public static void main(String[] args) { // 2
        System.out.print(sum(1, 2));         // 3
    }
}
class Foo {
    int sum(int x, int y) {
        return x + y;
    }
}

where to change language, don't tell me that i came to loose time here

2025 Dec 14, 3:07:26 AM

why your test is in language i don't understand ?

2025 Dec 14, 3:06:30 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes