下列代码运行的结果是public class Method{public void print(){System.out.print("Hello"+",");}public void my(){System.out.println("My name is Tom.");}public static void main(String args[]){Method method=new Method();method.print();System.out.println("My name is Peter."}}
A. Hello,My name is Tom.
B. Hello,My name is Peter.
C. Hello,My name is Peter.My name is Tom.
D. My name is Peter.