【单选题】分析下面程序,写出运行结果。public class Main { public static void main(String args[]) { int a = 1, b = 1; for (; a = 10) break; if (b % 3 == 1) { b += 3; continue; } } System.out.print(a); } }
【简答题】阅读下面的程序,分析程序能否运行成功,如果成功,写出运行结果,否则说明原因。class P { public function getName() { return $this->name; }}class C extends P { protected $name = 'name-value';}$o = new C;echo $...