摘要:
Q: What if the static modifier is removed from the signature of the main method? A: Program compiles. But at run time throws an error "NoSuchMethod... 阅读全文
posted @ 2013-11-26 20:31
宋建国
阅读(110)
评论(0)
推荐(0)
摘要:
java interview Q: What is the difference between an Interface and an Abstract class? A: An abstract class can have instance methods that im... 阅读全文
posted @ 2013-11-26 20:14
宋建国
阅读(135)
评论(0)
推荐(0)
摘要:
Q: What if the main method is declared as private? 如果将主函数声明为私有类型的会怎样? A: The program compiles properly but at run time it will give "Main ... 阅读全文
posted @ 2013-11-26 19:44
宋建国
阅读(158)
评论(0)
推荐(0)