2017秋招艺龙旅行网研发工程师一面面经

1.数据库索引的B Tree和Hash实现的区别
2.b 和b-的区别
3.数据库left join和right join
4.Redis相关
5.List中为什么不能装入int
6.多态和重写
7.创建线程的方法
8.run()和start()的区别
9.输出什么?i的数值变化过程?
public static void testException(){
List<String> testList=null;
int i=0;
try{
for(String str:testList){
System.out.println(str);
}
}catch (Exception e){
i=1;
e.printStackTrace();
}finally {
i=2;
}
System.out.println(i);
}

10.
public class ParentVo {

private Integer t1=1;

private Integer t2=2;

public Integer getT1() {
return t1;
}

public void setT1(Integer t1) {
this.t1 = t1;
}

public Integer getT2() {
return t2;
}

public void setT2(Integer t2) {
this.t2 = t2;
}
}

public class Model1 extends ParentVo{
private Integer t1=3;
@Override
public Integer getT1() {
return t1;
}
@Override
public void setT1(Integer t1) {
this.t1 = t1;
}
}
public class Model2 extends ParentVo{
private Integer t2=4;
@Override
public Integer getT2() {
return t2;
}
@Override
public void setT2(Integer t2) {
this.t2 = t2;
}
}
public static void model(){
ParentVo p1=new Model1();
ParentVo p2=new Model2();
System.out.println(p1.getT1());
System.out.println(p2.getT2());
}

11.
public static void stringsplit(){
String t1="1;2;;;";
String t1Array1[]=t1.split(";");
String t1Array2[]=t1.split(";",t1.length());
System.out.println(t1Array1.length);
System.out.println(t1Array2.length);
}

12.
public static void calculateData(){
List<Integer> dataList=new ArrayList<>();
dataList.add(2);
dataList.add(4);
dataList.add(3);
dataList.add(6);
dataList.add(3);
dataList.add(6);
dataList.add(8);
dataList.add(7);
dataList.add(1);
//用最简单快捷的方式去取两个数相加等于10的任意一对
}

补充:
1.图的深度优先遍历和广度优先遍历
2.如何解决hash冲突


#Java工程师#
全部评论
5点三面
点赞 回复 分享
发布于 2017-09-25 14:58
redis问的很深入吗
点赞 回复 分享
发布于 2017-09-25 13:37
都回答了吗,怎么会挂。。。
点赞 回复 分享
发布于 2017-09-25 12:12
怎么做到记这么清楚的,连代码都记下来了.......
点赞 回复 分享
发布于 2017-09-25 11:38
过了吧!面了几面?
点赞 回复 分享
发布于 2017-09-25 11:37

相关推荐

不愿透露姓名的神秘牛友
07-16 14:00
白火同学:其实你可以了解一下HR在Boss聊天的机制,想赢牌的前提是先会玩牌。 如果HR长时间没有理你,有可能是因为你的消息被其他应聘者的消息给挤到下面了,HR从上到下有可能只看个三四百个人就要到理想数量的简历了,而你恰好没有被看到,时间一长,你的消息在越来越下面。这种情况就需要你自己活跃一下,把消息提上去。 也可能是HR招的合适的人选了,但会一直挂着岗位,为了省重新开招聘岗位的钱,方便后面随时修改招聘要求。 当然也可能是HR吃饱了没事耍你玩,要了你的简历又不看,就看你自己怎么理解了。
点赞 评论 收藏
分享
zYvv:双一流加大加粗再标红,然后广投。主要是获奖荣誉不够,建议开始不用追求大厂,去别的厂子刷下实习。
点赞 评论 收藏
分享
评论
点赞
18
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务