更多java基础知识试题
- 1线程对象的生命周期中,哪个不是其经历的状态( )
- 2下列说法中,不正确的一项是( )
- 3以下输出是什么 ?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] + " "); } }}
- 4下面哪个函数是public void example(){...}的重载函数( )
- 5对于可以独立运行的Java应用程序,下列( )说法是正确的