如下所示,在main方法中调用了xMethod()方法,则xMethod()在类中是()。publicstaticvoidmain(Stringargs){xMethod();}
如下所示,在main方法中调用了xMethod()方法,则xMethod()在类中是()。publicstaticvoidmain(Stringargs){xMethod();}
A.静态方法
B.实例方法
C.静态方法或实例方法
正确答案:A
如下所示,在main方法中调用了xMethod()方法,则xMethod()在类中是()。publicstaticvoidmain(Stringargs){xMethod();}
A.静态方法
B.实例方法
C.静态方法或实例方法
正确答案:A
相关答案
热门答案