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.
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
-
Execution order junit usage, before, beforeClass, after, afterClass of
-
nginx request forwarding algorithm, how to configure according to the weight forward
-
Redis achieved by hashmap What is the problem (deadlock, infinite loop, available ConcurrentHashmap)
-
State of the thread
-
Blocked thread way
-
The difference between sleep and wait
-
Hashmap underlying implementation
-
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
-
java memory model, garbage collection, unreachable algorithm
-
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
-
aop的底层实现,动态代理是如何动态,假如有100个对象,如何动态的为这100个对象代理
-
是否用过maven install。maven test。git(make install是安装本地jar包)
-
tomcat的各种配置,如何配置docBase
-
spring的bean配置的几种方式
-
web.xml的配置
-
spring的监听器。
-
zookeeper的实现机制,有缓存,如何存储注册服务的
-
IO会阻塞吗?readLine是不是阻塞的
-
用过spring的线程池还是java的线程池?
-
字符串的格式化方法 (20,21这两个问题问的太低级了)
-
时间的格式化方法
-
定时器用什么做的
-
线程如何退出结束
-
java有哪些锁?乐观锁 悲观锁 synchronized 可重入锁 读写锁,用过reentrantlock吗?reentrantlock与synmchronized的区别
-
ThreadLocal的使用场景
-
java的内存模型,垃圾回收机制
-
为什么线程执行要调用start而不是直接run(直接run,跟普通方法没什么区别,先调start,run才会作为一个线程方法运行)
-
qmq消息的实现机制(qmq是去哪儿网自己封装的消息队列)
-
遍历hashmap的三种方式
-
jvm的一些命令
-
memcache和redis的区别
-
mysql的行级锁加在哪个位置
-
ConcurrentHashmap的锁是如何加的?是不是分段越多越好
-
myisam和innodb的区别(innodb是行级锁,myisam是表级锁)
-
mysql其他的性能优化方式
-
linux系统日志在哪里看
-
如何查看网络进程
-
统计一个整数的二进制表示中bit为1的个数
-
jvm内存模型,java内存模型
-
如何把java内存的数据全部dump出来
-
Java 会出现内存溢出吗?什么情况下会出现?
-
双亲委派模型,为什么这样做?
-
对象什么情况下进入老年代?
-
mongodb和hbase的区别
-
如何解决并发问题
-
为什么使用 Executor 框架?
-
什么是阻塞队列?阻塞队列的实现原理是什么?如何使用阻塞队列来实现生产者-消费者模型?
-
快速排序说一下过程
-
垃圾回收算法
-
Tomcat 类加载器
-
读写分离何时强制要读主库,读哪个从库是通过什么方式决定的,从库的同步mysql用的什么方式
-
Redis 的数据类型?
-
一个字符串类型的值能存储最大容量是多少?
-
将一个链表反转(用三个指针,但是每次只发转一个)
-
spring Aop的实现原理,具体说说
-
在 java 中守护线程和本地线程区别?
-
是否用过Autowire注解
-
spring的注入bean的方式
-
sql语句各种条件的执行顺序,如select, where, order by, group by
-
select xx from xx where xx and xx order by xx limit xx;如何优化这个(看explain)
-
四则元算写代码
-
统计100G的ip文件中出现ip次数最多的100个ip
-
zookeeper的事物,结点,服务提供方挂了如何告知消费方
-
5台服务器如何选出leader(选举算法)
-
适配器和代理模式的区别
-
读写锁
-
static加锁
-
Jedis 与 Redisson 对比有什么优缺点?
-
为什么 edis 需要把所有数据放到内存中?
-
mybatis如何映射表结构
-
二叉树遍历
-
如何使用 Spring Boot 实现分页和排序?
-
mysql引擎区别
-
你使用了哪些 starter maven 依赖项?
-
class文件编译后加载到了哪
-
web的http请求如何整体响应时间变长导致处理的请求数变少,该如何处理?用队列,当处理不了那么多http请求时将请求放到队列
中慢慢处理,web如何实现队列
-
线程安全的单例模式
-
什么是 AOP?
-
你能否举一个以 ReadOnly 为事务管理的例子?
-
求表的size,或做数据统计可用什么存储引擎
-
哪个命令专门用来查看后台任务?
-
把后台任务调到前台执行使用什么命令?
-
怎么查看系统支持的所有信号?
-
搜索文件用什么命令? 格式是怎么样的?
-
使用什么命令查看用过的命令列表?
-
使用什么命令查看磁盘使用空间?空闲空间呢?
-
java的concurrent包用过没
-
Java 中用到的线程调度算法是什么?
-
java虚拟机的区域分配,各区分别存什么
-
在 Java 中 CycliBarriar 和 CountdownLatch 有什么区别?
-
Mybatis 是如何进行分页的?分页插件的原理是什么?
-
Mybatis 是如何将 sql 执行结果封装为目标对象并返回的?都有哪些映射形式?
-
在 mapper 中如何传递多个参数?
-
什么是 MyBatis 的接口绑定?有哪些实现方式?
-
redis能存哪些类型
-
服务注册和发现是什么意思?Spring Cloud 如何实现?
-
Spring Cloud 和dubbo区别?
-
什么是 Spring Cloud Bus?我们需要它吗?
-
什么是 Netflix Feign?它的优点是什么?
-
SpringBoot和SpringCloud的区别?
-
可重入锁中的lock和trylock的区别
-
innodb对一行数据的读会枷锁吗?不枷锁,读实际读的是副本
-
redis做缓存是分布式存的?不同的服务器上存的数据是否重复?guava cache呢?是否重复?不同的机器存的数据不同
-
用awk统计一个ip文件中top10
-
对表做统计时可直接看schema info信息,即查看表的系统信息
-
mysql目前用的版本
-
公司经验丰富的人给了什么帮助?(一般boss面会问这些)
-
自己相对于一样的应届生有什么优势
-
自己的好的总结习惯给自己今后的工作带了什么帮助,举例为证
-
原子类,线程安全的对象,异常的处理方式
-
4Zookeeper 对于 Kafka 的作用是什么?
-
数据传输的事务定义有哪三种?
-
Kafka 判断一个节点是否还活着有那两个条件?
-
Kafka 与传统 MQ 消息系统之间有三个关键区别
-
讲一讲 kafka 的 ack 的三种机制
-
kafka 如何不消费重复数据?比如扣款,我们不能重复的扣。
面试题答案
好了各位, 本文到这里就结束了! 关于面试题答案为什么没有直接写出来,我想说的是把面试题写下来会显得文章很长,(现在已经很长了…)这样就影响文章的可读性。
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