请阅读下面的程序,程序的运行结果是()。class Person {String name;int age;public Person() {}public Person(String n, int a) {name = n;age = a;}public void show() {System.out.print(name + "---" + age +"");}}public class Test {public static void main(String[] args) {Person p1 = new Person();p1.show();Person p2 = new Person("周星驰", 27);p2.show();}}
答:null---0 周星驰---27
继续答题:下一题