الرجوع
تسجيل الدخول
أنت تتصفح نسخة مؤرشفة من الموقع اضغط للانتقال إلى الموقع الجديد بكامل المزايا

Given the following code snippet, what is the result of the main method execution?

public class MathTest {
    public static void add(int a, int b) {
        System.out.println("Int addition: " + (a + b));
    }
    
    public static void add(double a, double b) {
        System.out.println("Double addition: " + (a + b));
    }
    
    public static void main(String[] args) {
        add(5, 6);
        add(5.0, 6.0);
    }
}