电话面试(山东青岛)

坐标:潍坊

面试问题:

1、说一下简历上的项目?

2、说一下有哪些数据类型?

整数:byte 8位、short 16位、int 32位、long 64位

小数:float 32位、double 64位

布尔:boolean 1位

字符:char 16位

3、说一下你对String的理解?

(1)首先说运行速度

StringBuilder > StringBuffer >String

(2)String最慢的原因:

String         字符串常量

StringBuffer          字符串变量(线程安全的)

StringBuilder         字符串变量(非线程安全的)

4、说一下集合有哪些?

https://blog.csdn.net/u010775025/article/details/79315361

5、介绍一下Servlet生命周期?

6、数组遍历的方法?

(1)foreach

(2)for循环

(2)迭代器遍历

原文地址:https://www.cnblogs.com/javastudydoing/p/11820119.html