最新java试题测试(1)
百度广告
public static void changestr(string str){
}
string str="1234";
system.out.println(str);
}
question no:2
2. static boolean foo(char c) {
4. return true;
6. public static void main( string argv ) {
8. for ( foo('a'); foo('b')&&(i< 2); foo('c')){
10. foo('d');
13. }
what is the result?
b. abcdabcd
d. an exception is thrown at runtime.
question no: 3
2. protected int method1(int a, int b) { return 0; }
which two are valid in a class that extends class a? (choose two)
b. private int method1(int a, int b) { return 0; }
d. public short method1(int a, int b) { return 0; }
question no: 4
2. public void someoutermethod() {
4. }
6. public static void main( stringargv ) {
8. // line 8
10. }
a. new inner(); // at line 3
c. new o.inner(); // at line 8
question no: 5
a. the encodeurl method of the httpservletrequest interface.
c. the rewriteurl method of the httpservletrequest interface.
question no: 6
a.
c.
编辑推荐:
温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)
点击加载更多评论>>