10 companies for Java developers interview FAQ Collection

Last article I asked a few big brothers to help me sum up a bit, finishing three sets of simulated interview questions, attentive big brother I have found that the more a day break, why break it more, but also to talk about the reasons for it. I had to interview me before picking out those stuff, and today I share my.
Here Insert Picture Description

I do java development, this is my interview resultant sum up the work a few years, of course, those companies have to face here with naturally big brother than not. There are some Internet giant also has some small entrepreneurial companies interview questions and share the previous few there will be some duplication, clarify these, I believe the interview will be a lot easier.

Interview accident

Interviewer: Have you seen what the source?
I: all kind of familiar with
the interviewer: how to understand the extent of hashMap?
Interviewer: Can you talk about the realization of the principle HashMap do?
Interviewer: HashMap when it will be rehash?
Interviewer: Why talk about the combination of source HashMap will appear in an infinite loop high concurrency scenarios?
Me: ...
Me: Sorry ...
Interviewer: ah.
Interviewer: ... and shut the door.
Me: ... are you doing? First off on to say.
Interviewer: I say go out and shut the door.
I: what? , Walked out the door away

116 face questions

Here Insert Picture Description

  1. Execution order junit usage, before, beforeClass, after, afterClass of

  2. nginx request forwarding algorithm, how to configure according to the weight forward

  3. Redis achieved by hashmap What is the problem (deadlock, infinite loop, available ConcurrentHashmap)

  4. State of the thread

  5. Blocked thread way

  6. The difference between sleep and wait

  7. Hashmap underlying implementation

  8. Ten thousand people are competing for 100 red envelopes, how to implement (no queue), how to ensure that two individuals can not grab with a red envelope, distributed lock available

  9. java memory model, garbage collection, unreachable algorithm

  10. Integer object to the two references cited in the method of exchanging a swap internal method returns, the two reference values ​​to detect changes whether

  11. aop的底层实现,动态代理是如何动态,假如有100个对象,如何动态的为这100个对象代理

  12. 是否用过maven install。maven test。git(make install是安装本地jar包)

  13. tomcat的各种配置,如何配置docBase

  14. spring的bean配置的几种方式

  15. web.xml的配置

  16. spring的监听器。

  17. zookeeper的实现机制,有缓存,如何存储注册服务的

  18. IO会阻塞吗?readLine是不是阻塞的

  19. 用过spring的线程池还是java的线程池?

  20. 字符串的格式化方法 (20,21这两个问题问的太低级了)

  21. 时间的格式化方法

  22. 定时器用什么做的

  23. 线程如何退出结束

  24. java有哪些锁?乐观锁 悲观锁 synchronized 可重入锁 读写锁,用过reentrantlock吗?reentrantlock与synmchronized的区别

  25. ThreadLocal的使用场景

  26. java的内存模型,垃圾回收机制

  27. 为什么线程执行要调用start而不是直接run(直接run,跟普通方法没什么区别,先调start,run才会作为一个线程方法运行)

  28. qmq消息的实现机制(qmq是去哪儿网自己封装的消息队列)

  29. 遍历hashmap的三种方式

  30. jvm的一些命令

  31. memcache和redis的区别

  32. mysql的行级锁加在哪个位置

  33. ConcurrentHashmap的锁是如何加的?是不是分段越多越好

  34. myisam和innodb的区别(innodb是行级锁,myisam是表级锁)

  35. mysql其他的性能优化方式

  36. linux系统日志在哪里看

  37. 如何查看网络进程

  38. 统计一个整数的二进制表示中bit为1的个数

  39. jvm内存模型,java内存模型

  40. 如何把java内存的数据全部dump出来

Here Insert Picture Description

  1. Java 会出现内存溢出吗?什么情况下会出现?

  2. 双亲委派模型,为什么这样做?

  3. 对象什么情况下进入老年代?

  4. mongodb和hbase的区别

  5. 如何解决并发问题

  6. 为什么使用 Executor 框架?

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

  8. 快速排序说一下过程

  9. 垃圾回收算法

  10. Tomcat 类加载器

  11. 读写分离何时强制要读主库,读哪个从库是通过什么方式决定的,从库的同步mysql用的什么方式

  12. Redis 的数据类型?

  13. 一个字符串类型的值能存储最大容量是多少?

  14. 将一个链表反转(用三个指针,但是每次只发转一个)

  15. spring Aop的实现原理,具体说说

  16. 在 java 中守护线程和本地线程区别?

  17. 是否用过Autowire注解

  18. spring的注入bean的方式

  19. sql语句各种条件的执行顺序,如select, where, order by, group by

  20. select xx from xx where xx and xx order by xx limit xx;如何优化这个(看explain)

  21. 四则元算写代码

  22. 统计100G的ip文件中出现ip次数最多的100个ip

  23. zookeeper的事物,结点,服务提供方挂了如何告知消费方

  24. 5台服务器如何选出leader(选举算法)

  25. 适配器和代理模式的区别

  26. 读写锁

  27. static加锁

  28. Jedis 与 Redisson 对比有什么优缺点?

  29. 为什么 edis 需要把所有数据放到内存中?

  30. mybatis如何映射表结构

  31. 二叉树遍历

  32. 如何使用 Spring Boot 实现分页和排序?

  33. mysql引擎区别

  34. 你使用了哪些 starter maven 依赖项?

  35. class文件编译后加载到了哪

  36. web的http请求如何整体响应时间变长导致处理的请求数变少,该如何处理?用队列,当处理不了那么多http请求时将请求放到队列

中慢慢处理,web如何实现队列

  1. 线程安全的单例模式

  2. 什么是 AOP?

  3. 你能否举一个以 ReadOnly 为事务管理的例子?

  4. 求表的size,或做数据统计可用什么存储引擎

Here Insert Picture Description

  1. 哪个命令专门用来查看后台任务?

  2. 把后台任务调到前台执行使用什么命令?

  3. 怎么查看系统支持的所有信号?

  4. 搜索文件用什么命令? 格式是怎么样的?

  5. 使用什么命令查看用过的命令列表?

  6. 使用什么命令查看磁盘使用空间?空闲空间呢?

  7. java的concurrent包用过没

  8. Java 中用到的线程调度算法是什么?

  9. java虚拟机的区域分配,各区分别存什么

  10. 在 Java 中 CycliBarriar 和 CountdownLatch 有什么区别?

  11. Mybatis 是如何进行分页的?分页插件的原理是什么?

  12. Mybatis 是如何将 sql 执行结果封装为目标对象并返回的?都有哪些映射形式?

  13. 在 mapper 中如何传递多个参数?

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

  15. redis能存哪些类型

  16. 服务注册和发现是什么意思?Spring Cloud 如何实现?

  17. Spring Cloud 和dubbo区别?

  18. 什么是 Spring Cloud Bus?我们需要它吗?

  19. 什么是 Netflix Feign?它的优点是什么?

  20. SpringBoot和SpringCloud的区别?

  21. 可重入锁中的lock和trylock的区别

  22. innodb对一行数据的读会枷锁吗?不枷锁,读实际读的是副本

  23. redis做缓存是分布式存的?不同的服务器上存的数据是否重复?guava cache呢?是否重复?不同的机器存的数据不同

  24. 用awk统计一个ip文件中top10

  25. 对表做统计时可直接看schema info信息,即查看表的系统信息

  26. mysql目前用的版本

  27. 公司经验丰富的人给了什么帮助?(一般boss面会问这些)

  28. 自己相对于一样的应届生有什么优势

  29. 自己的好的总结习惯给自己今后的工作带了什么帮助,举例为证

  30. 原子类,线程安全的对象,异常的处理方式

  31. 4Zookeeper 对于 Kafka 的作用是什么?

  32. 数据传输的事务定义有哪三种?

  33. Kafka 判断一个节点是否还活着有那两个条件?

  34. Kafka 与传统 MQ 消息系统之间有三个关键区别

  35. 讲一讲 kafka 的 ack 的三种机制

  36. kafka 如何不消费重复数据?比如扣款,我们不能重复的扣。

Here Insert Picture Description

面试题答案

好了各位, 本文到这里就结束了! 关于面试题答案为什么没有直接写出来,我想说的是把面试题写下来会显得文章很长,(现在已经很长了…)这样就影响文章的可读性。

Finishing the road more than 1000 companies java face questions over 400-page pdf document, as well as the core Java knowledge hundreds of pages of PDF.
I welcome the attention of the public to receive number: Reply "interview" or "PDF" can be.

Welcome to receive, click on: 789 650 498 to join. Verify: CSDN, can receive a free.

I was Timo

A festival parade flooding, a awe-inspiring righteousness, upright Java programmers

Released seven original articles · won praise 23 · views 9161

Guess you like

Origin blog.csdn.net/qq_41770757/article/details/103958969