文档介绍:Java笔试题
第一部分:数据结构
    }
}
 
    staticboolean foo(char c) {
       (c);
       returntrue;
    }
       }
    }
}
What is the result?
A. ABDCBDCB
B. ABCDABCD
C. Compilation fails.
D. An exception is thrown at runtime.
 
三、1. class A {
2. protected int method1(int a, int b) { return 0; }
3. }
Which two are valid in a class that extends class A? (Choose two)
A. public int method1(int a, int b) { return 0; }
B. private int method1(int a, int b) { return 0; }
C. private int method1(int a, long b) { return 0; }
D. public short method1(int a, int b) { return 0; }
E. static protected int method1(int a, int b) { return 0; }
lass B extends A{
    /**
     ****@paramargs
     */
   
}
 
四、 1. public class Outer{
2. public void someOuterMethod() {
3. // Line 3
4. }
5. public class Inner{}
6. public static void main( String[]argv ) {
7. Outer o = new Outer();
8. // Line 8
9. }
10. }
Which instantiates an instance of Inner?
A. new Inner(); // At line 3
B. new Inner(); // At line 8
C. new (); // At line 8
D. new (); // At line 8//new Outer().new Inner()
五、,?分别是什么?
 
 
六、描述Struts体系结构?对应各个部分的开发工作主要包括哪些?
七、XML包括哪些解释技术,区别是什么?
 
八、JSP有哪些内置对象和动作?它们的作用分别是什么?
 
九、打印出所有的"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个"水仙花数",因为153=1的三次方+5的三次方+3的三次方。
程序实现
十、将一个正整数分解质因数。例如:输入90,