摘要:
之前面试碰到过一道题:SQL查询每个班级前10名的学生 这样的题目其实没有多少技术含量,就是一个sql写法,有点像脑筋急转弯,但是当时一时没想出来。 不过还有点意思,找了找答案,记录下来。 select * from 学生信息表 a where 10 > (select count(*) from 阅读全文
摘要:
字符串是面试经常被问到的问题,需要正确理解字符串常量池,才能答好这类问题。 public class Test { public static void main(String[] args) { String s1 = "hello world"; String s2 = "hello world 阅读全文