方正面试题总共十二题左右,其他没记清楚 1 ,怎么解决乱码问题,说出几个可行的解决办法? 的$(#div) 和$("div") 的区别? 3. 你所用到的三种设计模式,并简单说下 和 setintvor 的区别 5. 配置一个 action 需要配置那些内容 5, hibernate 中 inverse= “ true ” set IgnoreCase="true" 的意思是? 的外连接和内链接查询的区别 中 union 和 unio all 的区别? 8. 简单说下 ajax 中的 post 请求的过程? 配置文件中的通配符怎么配置? 的声明式事物? 11. 怎么设置 oracle 的表主键的自增长? 这是上个月的面试题,二零一二年七月份一、选择题 1 、下列表达式正确的( )? A. byte b= 128; B. boolean flag = null; C. float f= ; D. long a= 2147483648L; 2 、下列正确的说法有() :A .声明抽象方法,大括号可有可无 B. static 方法只可以调用 static 方法 C .抽象方法有方法体 D. static 方法可以访问类的所有属性 3、下列不属于 java 标识符的是() : A. _HelloWorld B. 3HelloWorld C. $HelloWorld C. HelloWorld3 4、属于 java 语言中基本数据类型的是() : A. var B. char C. Integer D. String 5、下列代码运行结果是(): 1. public class DoWhileTest 2.{ 3. public static void main(String[] args) { 4. intx =0; 5. inti =1; 6. do{ 7. if((i % 5) == 0){ 8. i++; 9. continue; 10.} += ++i; 12. }while(x <100); 13. ("x="+x); 14. } 15. }A. x=100 B. x=101 C. x=102 D. x=103 E. x=104 F. x=105 6、下列代码运行结果是(): 1. public class Parent{ 2. private int x; 3. protected int y; 4. public Parent(int x, int y){ 5. = x; 6. = y; 7.} 8. public void increaseX(int x){ 9. = getX()+x; 10. } 11. public int getX(){ 12. return x; 13. } 14. public void increaseY(int y){ 15. = getY()+y; 16. } 17. public int getY(){ 18. return y; 19. } 20. } 21. public class Child extends Parent 22. { 23. private int x; 24. private int y; 25. public Child(int x, int y){ 26. super(x, y); 27. = y+2 5 0; 28. = x+150; 29. } 20. public int getX(){ 31. return x; 32. } 33. public int getY(){ 34. return y; 35. } 36. public static void main(String[] args){ 37. Child child = new Child(100,100); 38. (100); 39. (100); 40. (" x ="+()+" and y ="+()); 41. }A. x=200 and y=200 ; B. x= 250 and y= 350 ;C. x=200 and y=350 ;D .编译错误;7 、下列选项可以在 A 的子类中使用的是( ): A{ 2. protected int method(int a,int b)
2016方正集团Java软件开发面试题 来自淘豆网m.daumloan.com转载请标明出处.