请说出下列程序的输出结果。 interface Com{ public void speak(); } public class E { public static void main(String args[]) { Com p=new Com() { public void speak() { System.out.println("p是接口变量"); } }; p.speak(); } }
A.
不输出任何内容
B.
p是接口变量
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】Given that it's now mid-June, and pretty much everyone that will be graduating from college this year has done so, I though I'd spend a bit of time putting together a short list of financial tips for ...
【单选题】'Culture consists of all shared products of human society' (Robertson, 1981 ). This means not only such material things as cities, organizations and schools, but also non-material things such as ideas...
【简答题】Everybody talks about the weather in England and this is not 1 . It changes from time to time, so it is always interesting. Someone 2 say that other countries have a climate, but England has just weat...
【简答题】For those of you who 1__________(convince) the selfies( 自拍照 )were just a passing interest and would never take off, prepare to eat your 2__________(word). Selfies are in fact constantly evolving, thou...
【简答题】About Myself Hi, everyone! Welcome to my blog. Let me make a short introduction to myself. I’m a boy aged 18. I come from a small village in South China. Though it is small, it is very beautiful. It l...