更多java基础知识试题
- 1下列关于JDK的说法中,错误的是?( )
- 2以下输出是什么 ?class LowHighSwap{ static void doIt( int[] z ) { int temp = z[z.length-1]; z[z.length-1] = z[0]; z[0] = temp; }}class TestIt{ public static void main( String[] args ) { int[] myArray = {1, 2, 3, 4, 5}; LowHighSwap.doIt(myArray); for (int i = 0; i < myArray.length; i++) { System.out.print(myArray[i] + " "); } }}
- 3java的输入流主要由()作为基类。?
- 4以下代码输出结果为:public class Main { public static void main(String args[]) { String x = null; giveMeAString(x); System.out.println(x); } static void giveMeAString(String y) { y = "RUNOOB"; } }
- 5线程是Java程序的( )机制。