格林模拟试题二(下)(7)
question 52)
given the following class definition, which of the following methods could be legally placed after the comment
//here public class rid{ public void amethod(int i, string s){} //here}
1)public void amethod(string s, int i){}
2)public int amethod(int i, string s){}
3)public void amethod(int i, string mystring){}
4) public void amethod(int i, string s) {}
question 53)
//here ?
1)myover m = new myover();
3)this("hello",10);
question 54)
class inout{string s= new string("between"); public void amethod(final int iargs){ int iam; class bicycle{ public void sayhello(){ //here } }//end of bicycle class }//end of amethod public void another(){ int iother; }}
2) system.out.println(iother);
4) system.out.println(iargs);
编辑推荐:
温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)
点击加载更多评论>>