错题:Test3

/**
 * 
* @ClassName: test3 
* @Description: TODO(请问主程序运行结果是什么?) 
* @author yk 
* @date 2017年3月9日 上午11:20:46 
*
 */
public class test3 {

    void Test(int i) {
        System.out.println("Int");
    }

    void Test(String str) {
        System.out.println("String");
    }

    public static void main(String[] args) {
        test3 test = new test3();
        char c = 'c';
        test.Test(c); // Int
    }
}

正确答案是Int,我答成了 String

转自:http://www.cnblogs.com/weknow619/p/6523942.html

原文地址:https://www.cnblogs.com/YangK-java/p/6524782.html