思迁数码科技Java软件工程师笔试真题(2)

招聘笔试题2018-11-22李天扬老师

  C.the code will not compile.

  D.None of these.

  7:

  What is the result when you compile and run the following code?

  public class ThrowsDemo

  {

  static void throwMethod()

  {

  System.out.println("Inside throwMethod.");

  throw new IllegalAccessException("demo");

  }

  public static void main(String args[])

相关推荐

猜你喜欢

大家正在看

换一换