/**
 * 
* @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

相关文章:

  • 2021-08-11
  • 2021-10-03
  • 2021-06-18
  • 2021-10-08
  • 2021-07-03
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2021-12-24
  • 2022-01-21
  • 2021-07-16
  • 2021-12-08
  • 2021-06-03
  • 2021-09-15
相关资源
相似解决方案