20161108问题解析请点击今日问题下方的“【Java每日一题】20161109”查看
今日问题:
请问主程序能否正常运行?(点击以下“【Java每日一题】20161109”查看20161108问题解析)
题目原发布于公众号、简书:[url=http://mp.weixin.qq.com/s?__biz=MzI4ODEyMTgwMA==&mid=2650163241&idx=1&sn=067dceeb6c2eb952d5e3fdbd12ea79ad&chksm=f3c1de8ec4b65798ce74e2e53d7d871cb353eece4b85660fe9b859b5c070250921dd403417d6#rd]【Java每日一题】20161109[/url],[url=http://www.jianshu.com/p/00eb01a1f365]【Java每日一题】20161109 [/url]
每日一题最新将在公众号发布,欢迎订阅,交流进步
[img]https://img-blog.csdn.net/20161017115128961?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast[/img]
package Nov2016;
import java.lang.reflect.Method;
public class Ques1109 {
public static void main(String[] args) throws Exception {
String methodName = "testMethod";
Method method01 = Test.class.getMethod(methodName); // 1
Method method02 = Test.class.getDeclaredMethod(methodName); // 2
}
static class Test{
void testMethod(){}
}
}
今日问题:
请问主程序能否正常运行?(点击以下“【Java每日一题】20161109”查看20161108问题解析)
题目原发布于公众号、简书:[url=http://mp.weixin.qq.com/s?__biz=MzI4ODEyMTgwMA==&mid=2650163241&idx=1&sn=067dceeb6c2eb952d5e3fdbd12ea79ad&chksm=f3c1de8ec4b65798ce74e2e53d7d871cb353eece4b85660fe9b859b5c070250921dd403417d6#rd]【Java每日一题】20161109[/url],[url=http://www.jianshu.com/p/00eb01a1f365]【Java每日一题】20161109 [/url]
每日一题最新将在公众号发布,欢迎订阅,交流进步
[img]https://img-blog.csdn.net/20161017115128961?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast[/img]