更多java基础知识试题
- 1以下输出是什么 ?class TestIt{ public static void main ( String[] args ) { int[] myArray = {1, 2, 3, 4, 5}; ChangeIt.doIt( myArray ); for(int j=0; j<myArray.length; j++) System.out.print( myArray[j] + " " ); }}class ChangeIt{ static void doIt( int[] z ) { z = null ; }}
- 2哪个修饰符定义了方法与属性只能在同一个类中访问?
- 3在linux下输入"cd"命令并按【Enter】键后,将有什么结果? ( )
- 4java环境变量配置中JAVA_HOME的作用是?( )
- 5哪一个选项可以在索引处找到名为 ar 的数组中的最后一个值?