无聊的面试题
2018-09-12
System.out.println("hello" + 1 + 2);//輸出hello12
System.out.println(1 + 2 +"hello");//輸出3hello
String s = "a" + "b" + "c" + "d" + "e"; 問此語句共創建了幾個對象,?http://blog.csdn.net/java2000_net/article/details/3681385
public class Main2 {public static void main(String[] args) {Student s = new Student();}public static class Student{public Student(){System.out.println("Student build");}{System.out.println("Student 。。。");}static{System.out.println("Student static");}} }輸出結果是:
Student static
Student 。。。
Student build
OGNL表達式
<%@ taglib uri="/struts-tags" prefix="s" %><s:property value="name" /> 或 ?<s:property value="stu.name" />?EL表達式
?${stu.name}?
2018-09-13
事務的四大特性:原子性,一致性,隔離性,持久性。
2018-09-14
MySQL的四種隔離級別:串行化、可重復讀、讀已提交、讀未提交。
2018-09-25
jsp九對象:
與servlet有關:page、config
與Input/Output有關:out、request、response
與Context上下文有關:application、session、pageContext
與Error有關:exception
2018-09-28
Java 虛擬機不僅要看類的全名是否相同,還要看加載此類的類加載器是否一樣。只有兩者都相同的情況,才認為兩個類是相同的。即便是同樣的字節代碼,被不同的類加載器加載之后所得到的類,也是不同的。
?查詢學科前2名的sql? ?博客來源
select * from StudentGrade t
where (select count(1) from StudentGrade where subid=t.subid and grade>t.grade)<=1
order by subId,grade desc
?
轉載于:https://www.cnblogs.com/angelshelter/p/9632543.html
總結
- 上一篇: 使用 IntraWeb (13) - 基
- 下一篇: 恶补各种知识(操作系统篇)