Outline of the latest JAVA interview knowledge points in 2018

Job hopping happens all the time, but I recommend that you think about why you want to change before you jump. You must not follow the trend, see colleagues leave one by one, and blindly interview yourself (not fully prepared during the period), is it because of technical reasons (affecting your own development, deviating from your planned trajectory), or less money? , not taken seriously.

An inadequately prepared interview is a complete waste of time and irresponsible to yourself (if the title is high, I don't say it).

Today, I will share with you the Java interview outline compiled by Chenssy during this job-hopping. Most of them are interview questions in the interview process. You can check and fill in the gaps according to this. Of course, it is impossible to cover all the methods listed here.

Project Introduction

In most cases, this is the opening question of an interview. The interviewer asks this question mainly to test your overview ability and overall vision. Some people often complain that they are building a business every day, but they are not growing. In fact, in many cases, the business is indeed growing, but it is not without growth. Growth is not about doing middleware or technical architecture. For example, our needs analysis ability, communication and collaboration ability, product thinking ability, abstract modeling ability, etc. are all very important hard powers.

OK, now on to the text.

1. Clarify what the project does

2. Define the value of the project. (Why do you do this project, what pain points does it solve for users, and what value does it bring?)

3. Define the function of the project. (What features does this project involve?)

4. Define the technology of the project. (What technologies are used in this project?)

5. Clarify the position and role of individuals in the project. (Your role in this project?)

6. Define the overall structure of the project.

7. Identify the strengths and weaknesses of the project, and how you would design it if you redesigned it.

8. Identify the highlights of the project. (What is the highlight of this project?)

9. Identify technical growth. (What skills have you grown through this project?)

Java Basics

1. The difference between List and Set

2. How does HashSet ensure non-repetition

3. Is HashMap thread-safe, why is it not thread-safe (it is best to draw a picture to illustrate that it is not safe in a multi-threaded environment)?

4. The expansion process of HashMap

5. The difference between HashMap 1.7 and 1.8, explain what optimizations have been made in 1.8 and how to optimize them?

6、final finally finalize

7. Strong reference, soft reference, weak reference, virtual reference

8. Java reflection

9、Arrays.sort 实现原理和 Collection 实现原理

10、LinkedHashMap的应用

11、cloneable接口实现原理

12、异常分类以及处理机制

13、wait和sleep的区别

14、数组在内存中如何分配

Java 并发

1、synchronized 的实现原理以及锁优化?

2、volatile 的实现原理?

3、Java 的信号灯?

4、synchronized 在静态方法和普通方法的区别?

5、怎么实现所有线程在等待某个事件的发生才会去执行?

6、CAS?CAS 有什么缺陷,如何解决?

7、synchronized 和 lock 有什么区别?

8、Hashtable 是怎么加锁的 ?

9、HashMap 的并发问题?

10、ConcurrenHashMap 介绍?1.8 中为什么要用红黑树?

11、AQS

12、如何检测死锁?怎么预防死锁?

13、Java 内存模型?

14、如何保证多线程下 i++ 结果正确?

15、线程池的种类,区别和使用场景?

16、分析线程池的实现原理和线程的调度过程?

17、线程池如何调优,最大数目如何确认?

18、ThreadLocal原理,用的时候需要注意什么?

19、CountDownLatch 和 CyclicBarrier 的用法,以及相互之间的差别?

20、LockSupport工具

21、Condition接口及其实现原理

22、Fork/Join框架的理解

23、分段锁的原理,锁力度减小的思考

24、八种阻塞队列以及各个阻塞队列的特性

Spring

1、BeanFactory 和 FactoryBean?

2、Spring IOC 的理解,其初始化过程?

3、BeanFactory 和 ApplicationContext?

4、Spring Bean 的生命周期,如何被管理的?

5、Spring Bean 的加载过程是怎样的?

6、如果要你实现Spring AOP,请问怎么实现?

7、如果要你实现Spring IOC,你会注意哪些问题?

8、Spring 是如何管理事务的,事务管理机制?

9、Spring 的不同事务传播行为有哪些,干什么用的?

10、Spring 中用到了那些设计模式?

11、Spring MVC 的工作原理?

12、Spring 循环注入的原理?

13、Spring AOP的理解,各个术语,他们是怎么相互工作的?

14、Spring 如何保证 Controller 并发的安全?

Netty

1、BIO、NIO和AIO

2、Netty 的各大组件

3、Netty的线程模型

4、TCP 粘包/拆包的原因及解决方法

5、了解哪几种序列化协议?包括使用场景和如何去选择

6、Netty的零拷贝实现

7、Netty的高性能表现在哪些方面

分布式相关

1、Dubbo的底层实现原理和机制

2、描述一个服务从发布到被消费的详细过程

3、分布式系统怎么做服务治理

4、接口的幂等性的概念

5、消息中间件如何解决消息丢失问题

6、Dubbo的服务请求失败怎么处理

7、重连机制会不会造成错误

8、对分布式事务的理解

9、如何实现负载均衡,有哪些算法可以实现?

10、Zookeeper的用途,选举的原理是什么?

11、数据的垂直拆分水平拆分。

12、zookeeper原理和适用场景

13、zookeeper watch机制

14、redis/zk节点宕机如何处理

15、分布式集群下如何做到唯一序列号

16、如何做一个分布式锁

17、用过哪些MQ,怎么用的,和其他mq比较有什么优缺点,MQ的连接是线程安全的吗

18、MQ系统的数据如何保证不丢失

19、列举出你能想到的数据库分库分表策略;分库分表后,如何解决全表查询的问题

20、zookeeper的选举策略

21、全局ID

数据库

1、mysql分页有什么优化

2、悲观锁、乐观锁

3、组合索引,最左原则

4、mysql 的表锁、行锁

5、mysql 性能优化

6、mysql的索引分类:B+,hash;什么情况用什么索引

7、事务的特性和隔离级别

缓存

1、Redis用过哪些数据数据,以及Redis底层怎么实现

2、Redis缓存穿透,缓存雪崩

3、如何使用Redis来实现分布式锁

4、Redis的并发竞争问题如何解决

5、Redis持久化的几种方式,优缺点是什么,怎么实现的

6、Redis的缓存失效策略

7、Redis集群,高可用,原理

8、Redis缓存分片

9、Redis的数据淘汰策略

JVM

1、详细jvm内存模型

2、讲讲什么情况下回出现内存溢出,内存泄漏? 

3、说说Java线程栈

4、JVM 年轻代到年老代的晋升过程的判断条件是什么呢?

5、JVM 出现 fullGC 很频繁,怎么去线上排查问题?

6、类加载为什么要使用双亲委派模式,有没有什么场景是打破了这个模式?

7、类的实例化顺序

8、JVM垃圾回收机制,何时触发MinorGC等操作

9、JVM 中一次完整的 GC 流程(从 ygc 到 fgc)是怎样的

10、各种回收器,各自优缺点,重点CMS、G1

11、各种回收算法

12、OOM错误,stackoverflow错误,permgen space错误

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325810034&siteId=291194637