面试题总结
发布日期:2021-05-15 06:52:19 浏览次数:20 分类:精选文章

本文共 6577 字,大约阅读时间需要 21 分钟。

������

1���String str = new String("abc"); ���������������������

������������������������������������abc���������������������������������abc������

2���String���StringBuffer���StringBuilder������������

  • String��������������������������������������������������������������� immutable ���������������
  • StringBuffer���������������������������������������������������������������������������������
  • StringBuilder������������������������������������String������������������������������������������������

3������������������ hashCode() ��������������� equals() ������������ true���

������������������������ hashCode() ������������������������������������������������������������ equals() ������������ true������������������ hashCode() ��������������������������������������������������������� equals() ������������ false������������������������ hashCode() ��������������������������������������������������������������������������������������������������������� equals() ������������������������ hashCode() ������������������������������������������������ hashCode()���

4���BIO���NIO���AIO ������������

  • BIO��������������� I/O���������������������������������������������������������������������������������������������������������
  • NIO������������������ I/O������������������������������-������������������������������������������������������������������������������������������������
  • AIO������������������ I/O������������������������������������������������������������������������������������������������������������������

������

1���List���Set���Map ������������������

  • List���������������������������������
  • Set���������������������������������������
  • Map������������������������������

2���ArrayList���LinkedList���Vector ������������

  • ArrayList������������������������������������������������������ 10������������������
  • LinkedList������������������������������������������������������������
  • Vector������ ArrayList ������������������������������������������������

3���Hashset���LinkedHashSet ��� TreeSet ������������

  • Hashset��������� hashCode ��������������������������������� null���
  • LinkedHashSet��������������������������������������������������������� null���
  • TreeSet������������������������������������������������������������

4���HashMap ��� Hashtable ������������

  • Hashtable������������������������ null������
  • HashMap��������������������������� null ������

5������������������������������

  • ������������������������������������������������������������
  • ������������������������������������������������

���������

1���������������������������

  • ������ Thread ������
  • ������ Runnable ���������
  • ������ Callable ���������

2���������������������

  • ��������������������� Thread ��������� start() ������������������������ start() ���������
  • ��������������������������������������� CPU ���������������������
  • ��������������������� CPU ���������������������������������������������������������������������
  • ��������������������������������������������� I/O ���������
  • ������������������������������������������������

3���sleep() ��� wait() ������������

  • sleep()��������������������������������������������������� CPU ������������������ sleep ������������������
  • wait()������������������������������������������������������������������������������������������������

JVM

1���JVM ���������������

  • ������������������������������������jecore ���������������������
  • ������������������������������������������������������������
  • ������������������������������������������������������������
  • Java ���������������������������
  • ������������������������������������������������������

2������������������������

  • ���������������������������������������
  • ������������������������������������������������������
  • ���������������������������������������������CMS���G1 ������

3������������������������

  • ���������������������������������������������������������������������������������������������
  • ������-���������������������������������������������������������������������������������������
  • ������������������������������������������������������������������������������������������������������
  • ������-������������������������������������������������

���������

1������������������

  • ������������������������������������
  • ������������������������������������������
  • ���������������������������������������
  • ������������ in ��� not in ��������������������� exists���

2���InnoDB ��� MyISAM ������������

  • InnoDB���������������������������������������������������������������������
  • MyISAM���������������������������������������������������������

3���������������������������ACID������

  • ���������������������������������������������������������
  • ������������������������������������������������������������������������������
  • ���������������������������������������������
  • ������������������������������������������������������

4������������������������

  • ������������������������������������������
  • ��������������� where ��������������������� like ������Leapyear���������������������

������

1���������������������������������

public class Single {
private static final Single instance = new Single();
private Single() {}
public static Single getInstance() {
return instance;
}
}

2������������������

public class MaoPao {
public static void main(String[] args) {
int[] arr = {5, 2, 8, 1, 9, 3};
maopao(arr);
System.out.println(Arrays.toString(arr));
}
public static void maopao(int[] a) {
for (int i = 0; i < a.length - 1; i++) {
for (int j = 0; j < a.length - i - 1; j++) {
if (a[j] > a[j + 1]) {
int temp = a[j];
a[j] = a[j + 1];
a[j + 1] = temp;
}
}
}
}
}

���������

1���������������������������

  • ������������������XA ������������
  • ������������������������������������
  • ������������������������������������������������������

2���������������������������������������������������������

������������������������������InnoDB ��������������������� ������������Redis ������outsucion��������������������� ���������������������������������Redis������

������������

1���Spring Boot ���������������

  • @SpringBootApplication������������������������������������������
  • @ComponentScan������������������������
  • @Component������������������
  • @Service������������������������������
  • @Repository������������������������������
  • @Scope��������� bean ���������������
  • @Lazy������������ bean���
  • @Primary��������� bean ���������

2���MyBatis ���������������

  • #{}��������� SQL ���������
  • @Param������������������
  • <resultMap>���������������������������������
  • @OneMinute������������������������
上一篇:ajax跨域请求
下一篇:springBoot搭建后台权限系统模板

发表评论

最新留言

路过,博主的博客真漂亮。。
[***.116.15.85]2025年04月07日 16时30分28秒