zp_bj01

中软国际java 笔试 面试题

1、类加载有几种情况,怎么进行类加载

http://liliugen.iteye.com/blog/259106

2、运行时异常和编译时异常分别是什么

http://blog.csdn.net/xkqtest/archive/2008/04/10/2275676.aspx

3、怎么可以让子类无法继承父类的方法

用final修饰

4、线程同步和线程异步分别是什么,怎么实现线程

http://springeye00.iteye.com/blog/615172

5、什么是事务,谈谈你对事务的了解

6、说说你对集合机制的了解

http://tangxiaogaoshou.iteye.com/blog/451146

7、阅读代码

public class A {
 
 public int sayHello(int i){
  System.out.println(i + "是int");
  return i;
 }
 
 public char sayHello(char i){
  System.out.println(i + "是char");
  return i;
 }
 
 public short sayHello(short i){
  System.out.println(i + "是short");
  return i;
 }
 
 public static void main(String[] args) {
  A a = new A();
  String s = "wo";
  a.sayHello(s);
  System.out.println("--" + a.sayHello(s));
 }
 
}

最后输出什么?

你可以试着把这段代码加到编译软件上,会发现是错的。

8、给定一个数组(非排序的),写一个冒泡排序,由小到大排列



1、去年的今天是哪天(不知道这题什么意思,后来也忘问了)

2、数据库表的建立与查询,员工表emp id, name,salary,dept_id,部门dept id,name

查出每个部门的拥有的员工数,如果无,则显示0

3、struts1和struts2,写他们的实现方法,至少三种方法

4、struts1、struts2是线程安全的吗

5、struts1和struts2的区别

 

面试

new和反射的区别,反射相对new来说,有什么好处

hibernate持久化的一、二级缓存

spring IOC、AOP原理,源码

hashMap实现(这个很重要,很多公司问到)

谈谈你对servlet listener、filter的理解

oracle SGA怎么调整
posted @ 2012-10-24 22:50  Alamps  阅读(323)  评论(0编辑  收藏  举报