Compiled in 2019 thousands of interview questions Java Road, nearly 500-page document, with a month's time!

spring face questions

1, the general problem

1.1 What are the main functions of the different versions of the spring Framework there?

1.2 What is the spring Framework?

1.3, the advantages include the spring Framework.

1.4 What are the different functions of spring Framework there?

1.5, spring Framework in the number of modules, what they are?

1.6 What is the spring configuration file? ....

1.7 What are the different components of spring applications have?

1.8 What are the ways to use springg

2, dependency injection (Ioc,)

2.1 What is Spring IOC container?

2.2 What is dependency injection?

2.3 How many different ways can complete dependency injection?

2.4, distinguishing constructor injection and setter injection.

2.5, how many IOC container spring there?

2.6, and distinguish BeanFactory ApplicationContext. .

2.7, listed some of the benefits of IoC.

2.8, Spring IoC implementation mechanism.

3、Beans

3.1 What is a spring bean? ..

3.2, spring is provided which configuration?

3.3, spring supports centralized bean scope?

3.4, the life cycle of spring bean container is what?

3.5 What is the internal spring bean?

3.6 What is the spring assembly

3.7, automatic assembly what way?

3.8, automatic assembly have any limitations?

v2-a1ffda258261007b35fe5e460ea9c69e_b.jpg

4, comment

4.1 What is annotation-based container configuration ..

4.2, how to start assembling notes in the spring?

4.3 What is the difference @ Component, @Controller, @Repository, @Service?

4.4, @ Required annotation what's the use?

4.5, @ Autowired annotation what's the use? .

4.6, @ Qualifier annotation what's the use? .

4.7, @ RequestMapping annotation what's the use? ..

5, Data Access ...

5.1, spring DAO what's the use?

5.2, citing Spring DAO thrown.

5.3 What type spring JDBC API exist?

5.4, ​​using Hibernate Spring access methods What?

5.5, citing spring support transaction management type

5.6, spring which ORM framework support

6、AOP

6.1 What is AOP? .

6.2 What is the Aspect?

6.3, what is the point of tangency (JoinPoint).

6.4 What is notification (Advice)? .

6.5 What types of notifications (Advice) have?

6.6 points out differences between the spring aop and the concern of cross-cutting concern.

6.7, AOP implementations of what?

6.8, Spring AOP and AspectJ AOP What is the difference?

6.9, how to understand the Spring proxy? .

6.10, what is the weave (Weaving)?

v2-db3c1da3390286f73b3460ad3cf19beb_b.jpg

7、MVC

7.1, Spring MVC framework what's the use?

7.2, describe the workflow DispatcherServlet.

7.3, tell us about WebApplicationContext

v2-c10600245b70881b60bceb17ed8d25e7_b.png

MyBatis face questions

1. What is Mybatis?

2, Mybaits advantages

Disadvantage 3, MyBatis frame

4, MyBatis framework for occasions

5, MyBatis with Hibernate What are the differences?

6. What is the difference between # {} and {} $ is?

7, when the field names in the entity class attribute name and the table is not the same, how do?

8, fuzzy query like how to write the statement?

9, usually a Xml mapping file, will write a corresponding interface to Dao, may I ask, what is the working principle of the interface is Dao? Dao interfaces in the methods, parameters are different, the method can reload it?

10, Mybatis how to page through? What is the principle pagination plug-in?

v2-38ecc61f2bd6738f5cd69fdd05198764_b.jpg

11, Mybatis is how to execute sql package is the result of the target object and returns? What are mapping form? .

12, how to perform bulk insert?

13, how to get the automatically generated (master) key?

14, how to pass multiple parameters in a mapper in?

15、Mybatis 动态 sql 有什么用?执行原理?有哪些动态 sql?

16、Xml 映射文件中,除了常见的 select|insert|updae|delete 标签之外,还有哪些标签?

18、为什么说 Mybatis 是半自动 ORM 映射工具?它与全自动的区别在哪里?

19、 一对一、一对多的关联查询 ?

20、MyBatis 实现一对一有几种方式?具体怎么操作的?

v2-51e3336d4eb2505895a018f96e06d51b_b.jpg

21、MyBatis 实现一对多有几种方式,怎么操作的?

22、Mybatis 是否支持延迟加载?如果支持,它的实现原理是什么?

23、Mybatis 的一级、二级缓存:

24、什么是 MyBatis 的接口绑定?有哪些实现方式?

25、使用 MyBatis 的 mapper 接口调用时有哪些要求?

26、Mapper 编写有哪几种方式?

27、简述 Mybatis 的插件运行原理,以及如何编写一个插件。

v2-89c57e553c13652ad0ae50701d1c289b_b.png

ZooKeeper 面试题

1. ZooKeeper 面试题?

2. ZooKeeper 提供了什么?

3. Zookeeper 文件系统

4. ZAB 协议?

5. 四种类型的数据节点 Znode

6. Zookeeper Watcher 机制 -- 数据变更通知

7. 客户端注册 Watcher 实现

8. 服务端处理 Watcher 实现

9. 客户端回调 Watcher

10. ACL 权限控制机制

11. Chroot 特性

12. 会话管理

13. 服务器角色

14. Zookeeper 下 Server 工作状态

15. 数据同步

16. zookeeper 是如何保证事务的顺序一致性的?

17. 分布式集群中为什么会有 Master?

18. zk 节点宕机如何处理?

19. zookeeper 负载均衡和 nginx 负载均衡区别

20. Zookeeper 有哪几种几种部署模式?

v2-c41999d6b5ad02d3eaf49363f8f70fa4_b.jpg

21. 集群最少要几台机器,集群规则是怎样的?

22. 集群支持动态添加机器吗?

23. Zookeeper 对节点的 watch 监听通知是永久的吗?为什么不是永久的?.

24. Zookeeper 的 java 客户端都有哪些?

25. chubby 是什么,和 zookeeper 比你怎么看?

26. 说几个 zookeeper 常用的命令。

27. ZAB 和 Paxos 算法的联系与区别?.....

28. Zookeeper 的典型应用场景

微服务面试题

1、您对微服务有何了解?

2、微服务架构有哪些优势?

3、微服务有哪些特点?

4、设计微服务的最佳实践是什么?

5、微服务架构如何运作?

6、微服务架构的优缺点是什么?

7、单片,SOA 和微服务架构有什么区别?

8、在使用微服务架构时,您面临哪些挑战?

9、SOA 和微服务架构之间的主要区别是什么?

10、微服务有什么特点?

11、什么是领域驱动设计?

12、为什么需要域驱动设计(DDD)?.

13、什么是无所不在的语言?

14、什么是凝聚力?

15、什么是耦合?

16、什么是 REST / RESTful 以及它的用途是什么?

17、你对 Spring Boot 有什么了解?

18、什么是 Spring 引导的执行器?....

19、什么是 Spring Cloud?

20、Spring Cloud 解决了哪些问题?

v2-a0c47d669edbee896ae9aa930d0218c4_b.jpg

21、在 Spring MVC 应用程序中使用 WebMvcTest 注释有什么用处?

22、你能否给出关于休息和微服务的要点?

23、什么是不同类型的微服务测试?

24、您对 Distributed Transaction 有何了解?

25、什么是 Idempotence 以及它在哪里使用?

26、什么是有界上下文?

27、什么是双因素身份验证?

28、双因素身份验证的凭据类型有哪些?

29、什么是客户证书?

30、PACT 在微服务架构中的用途是什么?

31、什么是 OAuth?

32、康威定律是什么?

33、合同测试你懂什么?

34、什么是端到端微服务测试?

35、Container 在微服务中的用途是什么?

36、什么是微服务架构中的 DRY?

37、什么是消费者驱动的合同(CDC)?

38、Web,RESTful API 在微服务中的作用是什么?

39、您对微服务架构中的语义监控有何了解?

40、我们如何进行跨功能测试?

v2-d71bc7e1ec8a04ffa831349427402b4e_b.jpg

41、我们如何在测试中消除非决定论?

42、Mock 或 Stub 有什么区别?

43、您对 Mike Cohn 的测试金字塔了解多少?

44、Docker 的目的是什么?

45、什么是金丝雀释放?

46、什么是持续集成(CI)?

47、什么是持续监测?

48、架构师在微服务架构中的角色是什么?

49、我们可以用微服务创建状态机吗?

50、什么是微服务中的反应性扩展?

v2-a9465406df23a9af87d5196b479f7807_b.png

Java 并发编程

1、在 java 中守护线程和本地线程区别?

2、线程与进程的区别?

3、什么是多线程中的上下文切换?

4、死锁与活锁的区别,死锁与饥饿的区别?

5、Java 中用到的线程调度算法是什么?

6、什么是线程组,为什么在 Java 中不推荐使用?

7、为什么使用 Executor 框架?

8、在 Java 中 Executor 和 Executors 的区别?

9、如何在 Windows 和 Linux 上查找哪个线程使用的 CPU 时间最长?

10、什么是原子操作?在 Java Concurrency API 中有哪些原子类(atomic classes)?

v2-894f9b676a25ee10005048defb4b1845_b.jpg

11、Java Concurrency API 中的 Lock 接口(Lock interface)是什么?对比同步它有什么优势?

12、什么是 Executors 框架?

13、什么是阻塞队列?阻塞队列的实现原理是什么?如何使用阻塞队列来实现生产者-消费者模型?

14、什么是 Callable 和 Future?

15、什么是 FutureTask?使用 ExecutorService 启动任务。

16、什么是并发容器的实现?

17、多线程同步和互斥有几种实现方法,都是什么?

18、什么是竞争条件?你怎样发现和解决竞争?

19、你将如何使用 thread dump?你将如何分析 Thread dump?165

20、为什么我们调用 start()方法时会执行 run()方法,为什么我们不能直接调用 run()方法?

21, Java How do you wake up a blocked thread?

22. What is the difference in Java CycliBarriar and CountdownLatch?

23, what is an immutable object, write concurrent applications it going to help?

24, what is the context switching in a multi-threaded?

25, what thread scheduling algorithm is used in Java?

v2-91f3811b94e997ad25b33b5a3cd82606_b.jpg

26, what is the thread group, why not recommended in Java?

27, why create and manage threads better than using Executor application framework?

28, java, there are several ways to implement a thread?

29, how to stop a running thread?

30, notify () and notifyAll () What is the difference?

31. What is the Daemon thread? What does it mean?

32, java how to achieve communication and collaboration between multiple threads? Welcome to the concern I kind of public-ho [programmers] Herd, finishing 2019 companies java interview questions pdf document information on more than 400 pages, the article will be updated on the inside, finishing materials will be on the inside.


v2-aa15f76a826ecfaabcdb100175b10741_b.jpg

I personally feel that the interview be like a new journey, defeat and victory are commonplace. Therefore, I advise you not to be discouraged because of the interview failure, loss of morale. And not to do the interview by complacent, you will be waiting for a better future, continue to fuel!

For the above interview to ask the knowledge I summed up the Internet's Java programmers involved in most of face interview questions and answers made the documentation and information architecture for everyone to share, to help review and find your pre-interview a good job, but also saves you the time to search for information online learning, you can also concerned about me in the future there will be more dry goods share.


At last

Welcome to share with everyone, like the point of a praise yo remember the article, thanks for the support!

Guess you like

Origin blog.51cto.com/14442094/2453168