===Tips:点击上方蓝字查看历史消息=== 1.下列程序的运行结果为:________。 class Overload { public void fun(double a) { System.out.println("Double: " a); } public void fun(int a) { System.out.println("Int: " a); } public void fun(float a) { System.out.println("Float: " a); } } public class Test { public static void main(String args[ ]) { Overload o = new Overload(); o.fun(4); o.fun(4.0); o.fun(4.0F); o.fun(4L); } } 2.下列程序的运行结果为:________。 class Overload { public int min(int a, int b) { return a |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|