zoukankan      html  css  js  c++  java
  • java q

    1.选择题

    public class Test
    {

      public static void main(String [] args)
      {
      static int num [] =new int[10];

      System.out.println(num[10]);
      }
    }
    下面说法正确的是:

    A.程序编译失败。

    B 程序编译成功,运行时抛出异常。


    C 程序编译成功,运行时输出结果为0。

    D 如果将System.out.println(num[10])修改为System.out.println(num[9])输出结果将为0。

    2. interface Animal
    {
      public void test();
    }

    public class Hourse implements Animal
    {
      public void test()
      { 
      ...
      }

      public static void main(String [] args)
      {
      Animal a1= new Hourse();
      Animal a2= new Hourse();
      Animal a3= new Hourse();
       
      a1=a2; a2=null ; a3=a1;
     
      }
    }
    当程序执行到a1=a2;a2=null;a3=a1;这行时将有多少对象被垃圾回收器回收?

    A 1 B 2 C 3 D 4 E 5 F 6


    问答题

    1.ibatis中处理缓存有几种方式。


    2.java多线程中出现的异常分别有哪些?

    3.xfire支持的协议包括哪些?

    4.谈谈对SOA的理解。

    5.oracle是这样排序的,为什么在排序中需要一个子查询?

  • 相关阅读:
    教你如何自定义组件
    android应用开发小技巧
    改变Vim在iTerm2中的光标
    Mac添加bash alias
    tmux常用命令
    javascript Date 总结
    ES6箭头函数
    npm常用命令
    ES6 import export
    gitingore
  • 原文地址:https://www.cnblogs.com/cutepig/p/2130855.html
Copyright © 2011-2022 走看看