以下代码的调试结果为?1: public class Q102: {3: ...False");13: }14: }
举一反三
- 以下代码的调试结果为?1: public class Q102: {3: public static void main(String[] args)4: {5: int i = 10;6: int j = 10;7: boolean b = false;8:9: if( b = i == j)10: System.out.println("True");11: else12: System.out.println("False");13: }14: }
- 以下代码的调试结果为?以下程序的运行结果为 public class test { public static void main(String args[]) { int i = 1; do { i--; } while (i > 2); System.out.println(i); } }
- 以下代码输出结果为()class A{ public $a = 1; protected $b = 2;}class B extends A{ public $b = 3; function __construct(){ echo $this->a+$this->b; }}$b = new B(); A: 1 B: 2 C: 3 D: 4
- 以下代码调试结果 class Base {} class Sub extends Base {} public class CEx{ public static void main(String argv[]){ Base b = new Base(); Sub s = (Sub) b; } }
- 以下程序调试结果 public class test { public static void main(String args[]) { int i=1, j=3; while (j>0) { j--; i++; } System.out.println(i); } }