• 2021-04-14
    (4-1)写出下面程序运行结果。 public class Demo5 { public static void main(String []args) { int[] arr={12,35,8,7,2}; Arrays.sort(arr); System.out.println(arr[3]*arr.length); } }
  • 60

    内容

    • 0

      (2-6)请写出下面程序运行结果。 public class Demo { public static void main(String[] args) { int b = 011001; System.out.println(b); } }

    • 1

      (2-5)写出下面程序运行结果。 public class Demo { public static void main(String args[]) { System.out.println(123); System.out.println(0123); System.out.println(0x123); } }

    • 2

      (2-6)写出下面程序运行结果。 public class Demo { public static void main(String args[]) { int a=10,b=20; a=a^b; b=b^a; System.out.println(a); System.out.println(b); } }

    • 3

      智慧职教: 下面程序的运行结果是(     ) public class Person{ int[] arr=new int[10]; public static void main(String[]  args){ System.out .println(arr[9]); } }

    • 4

      (4-1)写出下面程序运行结果。public class Demo5 {pu...[3]*arr.length);}}