2012/3/15中兴远行科技/华为复试
1.io流对象,jbpm是什么方式用的(插进去),类保存在什么位置(Boy boy =s;s是对象的引用存放在栈里面,如果Boy boy =new Boy(),boy存放在堆里面)。2.JSP九种内置对象:
request, response, out, session, application, config, pagecontext, page, exception.
3.webservices(soa)用的多吗
4.数据库用过哪些(oracle,mysql,sqlserver)
5.sql优化,数据库优化.
6.什么是aop,是怎么用的。
11.jvm调优.
华为复试
1.手写一个创建数据库的表,插入数据,修改字段等(sql写出)
2.手写一个冒泡排序,并解释它的内部运行过程
/***
* 一冒泡排序
对数组各元素从头到尾依次比较相邻的两个元素是,经过第一轮比较排序后便可把最大(或最小)的元素排好,
然后再用同样的方法把剩下的元素逐个进行比较,就得到了你所要的顺序。可以看出如果有 n 个元素,
那么一共要进行 n-1 轮比较,第 i 轮要进行 j=n-i 次比较。(如:有5个元素,则要进行5-1轮比较。第3轮则要进行5-3次比较)
下面是具体实现(按照从小到大的规则,如果想从大到小。则把代码if(arr > arr)换成if(arr < arr)即可):
*
*
*/
public class Maopao {
public void sort(int[] arr){
System.out.println("排序前:");
for(int i = 0; i < arr.length; i++ ){
System.out.printf("%3s", arr);
}
System.out.println();
System.out.println("----------------------------------");
for(int i = 0; i < arr.length; i++){
for(int j = i + 1; j < arr.length; j++){
if(arr > arr){
int temp = arr;
arr = arr;
arr = temp;
}
}
System.out.println("第"+(i+1)+"次排序后:");
for(int k = 0; k < arr.length; k++){
System.out.printf("%3s", arr);
}
System.out.println();
}
System.out.println();
System.out.println("----------------------------------");
System.out.println("完成排序后:");
for(int i = 0; i < arr.length; i++){
System.out.printf("%3s", arr);
}
}
/**
* @param args
*/
public static void main(String[] args) {
int[] a = {10, 32, 1, 9, 5,3, 7, 12, 0, 4,4, 3};
Maopao mp = new Maopao();
mp.sort(a);
}
}
3.oracle中decode,nvl的用法有什么作用。
4.svn用过吗,对加班有什么看法
5.用io流手写一个文件复制.(FileRead,FileWriter,FileInputStream,FileOutpoutStream等)
6.手写一个二分查找法。
7.webservices原理。
8.hibernate原理。
9.进程与线程的区别,优缺点 。
10.hashmap跟hashtable的区别。
页:
[1]