【单选题】阅读下面的代码: class Person{ void say(){ System.out.println("hello"); } } class Example{ public static void main(String[] args){ Person p1 = new Person(); Person p2 = new Person(); p2.say(); p1.say(); p2=n...
【单选题】阅读下面的代码: class Person{ void say(){ System.out.println("hello"); } } class Example{ public static void main(String[] args){ Person p1 = new Person(); Person p2 = new Person(); p2.say(); p1.say(); p2=nu...
【简答题】阅读下面的代码:
class Person{
void say(){
System.out.println("hello");
}
}
class Example{
public static void main(String[] args){
Person p1 = new Person();
Person p2 = n...