Interview20120220
来源:互联网 发布:centos 安装chrome 编辑:程序博客网 时间:2024/06/14 07:08
这间公司给的感觉不错,技术面完试后还主动和握手,那一瞬间有点不知所措!
代码题
1、
private static void ss(int i){try{if(i==0){throw new Exception();}System.out.println("a");}catch(Exception e){e.printStackTrace();System.out.println("b");}finally{System.out.println("c");}}public static void main(String[] args) {ss(1); //a css(0); //报错 b c 当i是0的时候try块后续不会运行}
输出 a c b c
2、
public static void main(String[] args) {int []a = {};System.out.println(a[5]);}
报错
数据库题
1、更新soid为2的sopice为500;
update so set sopice='500' where soid=2
2、统计出每个用户的总金额 (group by语法 用于分组)
select soname,sum(sonum*sopice) from so group by soname3、查出哪个用户的总金额小于1000
select a from (select sum(sonum*sopice) as a from so group by soname) where a<1000
- Interview20120220
- html 小程序
- VM8.0装win8出现的windows cannot read the product key setting from the unattend answer file
- 关于数据挖掘的步骤
- ARM与单片机的区别? (转)
- SAS 的历史
- Interview20120220
- Apache+MySQL+Python+Django在Windows下环境搭建指南
- 使用response.sendRedirect实现重定向
- struts 2读书笔记-----Convention插件与“约定”支持
- java web编程(一)
- C#中读取“已注册的文件类型”的图标及读取指定文件图标的方法 (转)
- csstable
- 两名老人接力营救轻生女子一人溺亡
- uml 语言初览