Java面试2 ,3事(一)

来源:互联网 发布:西游记 知乎 编辑:程序博客网 时间:2024/06/05 16:43

应届生求职,经常来csdn看一些文章,我觉得写写博客记录自己的点滴也是蛮有趣的一件事

1、SQL删除表 保留表结构 

①TRUNCATE Table table(会释放表的存储空间、性能更优) ②delete

Ps:drop table会删除表结构  不会产生回滚

2、创建Socket对象

ServerSocket类

3、实现Servlet单线程的方法

JSP命令:<%@ page isThredSafe= “false”%>

4、HTML取消下划线 

text-decoration:none;

5、索引字段不唯一

要采用普通序列

6、String str;没有创建对象

7、Hibernate中实现类之间的关系

通过配置文件 many-to-many、many-to-one、one-to-many

8、SQL题

①每门课都大于80分的学生姓名

select distinct name from aa where name not in (select distinct name from aa where fenshu <=80);

 

原创粉丝点击