Java programmer interview experience and recommendations, MySQL HF Soul Share (recommended collection)

Java programmer interview experience and recommendations, MySQL HF Soul Share (recommended collection)


1240

Preface:

In this paper, to interview people in some of the recommendations, as well as some personal experience with the interview process, hope to help all of my colleagues who also shared some behind MySQL face questions ××× test high-frequency and high-frequency problem I have knowledge Oh will share

The main audience for face questions developer, so I do not relate to deploy MySQL service and other operations, and more content, everyone is ready to be patient and seeds of mineral water.

Before the burst of the system to learn a bit MySQL, there are some practical experience, the chance to see an interview and MySQL-related articles, I found that some of these questions answer themselves well, although most are aware knowledge, but not knowledge series.

Interview experience and suggestions

Resume Delivery

Delivered in several ways, I believe we all know. Programmers generally vertical delivery to job sites, such as tenderness, BOSS recruits straight, pull hook and so on. Zhaopin getting better, not suitable for our programmer, you know. In addition, because they are not big cow, so if a recruiter hooked, I try not to bother, because lessons have been blood. So try to cast your resume or your own more reliable, or interpolation.

Interview

Since I was across town, so I received a telephone interview usually interview + video interview, if talk about it, there are on-site interviews, not formality.

In general, the interview process are not too bad. First to introduce myself, focus on what some of their own work experience, as well as some of the content is mainly responsible for their own. This can prepare in advance a little, but does not need specially prepared, do not do as an endorsement like, but that is untrue.

1 Technical Interview

The average company will have two to three interview techniques, technical interview rounds manufacturers also more likely, but the content of each round of study are not very consistent, the following are some of some of their own problems.

1.1 Java foundation

At this point usually ask some basic knowledge of Java, such as

synchronized static classes and methods modification What is the difference

HashMap principle underlying data structure, the process of the rehash pointer collision

HashMap thread safety issues, why have such a thread-safety issues

ConcurrentHashMap data structure, the underlying principle, put and get whether thread safety

Some elements of Java IO, including the NIO, BIO, etc.

1.2 Java Advanced Features

此时问到的问题一般包含JVM,多线程的一些内容,这块建议大家多看看源码,大致如下:

Java线程池的构造方法,里面参数的含义,以及原理

volatile和ThreadLocal解决了什么问题

CAS在Java中的具体实现

Java虚拟机的构成,以及一个Java对象的生命周期,还有堆栈和方法区中存储的内容

JVM的GC过程,包括一些实际问题的分析,比如说明一个现象,让你分析可能是什么原因会导致这样的问题,应该如何对JVM参数进行调优

synchronized和Lock的区别,以及底层实现原理

Full GC和Minor GC触发的条件

GC Roots的选择

jmap,jstat,jstack等的使用场景,MAT等

ClassLoader的加载过程

CountDownLatch、CyclicBarrier和Semaphore等

Java 8 的新特性等

1.3 数据库

这里的数据库包含两种,一种一般是MySQL,另外是NoSql数据库,包括Redis、MongoDB等。一般会问的问题有:

inner join和left join等的区别

SQL调优,explain,profile等

InnoDB和Myisam的区别

ACID

数据库的事务隔离级别,以及他们分别能解决什么问题

Redis的几种数据结构

Redis是单线程还是多线程

Redis的持久化

悲观锁和乐观锁的含义

最左前缀索引,索引的数据结构,聚簇索引等(这块还没搞明白)

1.4 框架

1.4.1 Spring

因为spring是我们常用的框架,所以这块的内容会问的比较多,也会比较细。

Spring的两大特性(IoC和AOP)

Spring的bean的生命周期

Spring是如何解决Bean的循环引用问题的

AOP的两种实现方式,以及两者的区别(这里其实使用了动态代理,具体动态代理分为两种,一种是JDK的动态代理,主要使用的是JDK的反射,还有一种是CGLib,两者区别可以自己搜索,文章比较多)

AOP一般的使用场景

Spring的事务原理

1.4.2 MyBatis

这块问到的比较简单些:

$和#的区别

MyBatis和Hibernate的区别

源码,一般问的比较少

1.4.3 Dubbo

因为平时自己用到了Dubbo,所以这块会有问到:

RPC的原理

Dubbo是如何完成远程调用的

Dubbo如何进行调优

Dubbo的通信协议

Dubbo是如何实现负载均衡的

1.4.4 ZooKeeper

ZK的使用场景

ZK的选举机制

ZK的节点类型

一致性Hash原理

1.5 数据结构和算法

这块的内容是基础,如果面试官怀疑你的能力,一般一会问到这部分内容,比如树的遍历、快速排序等。

1.6 linux

一般会问一些命令的使用,然后会举一个实际的场景,让你用命令去排查问题,这块自己不是很熟,需要尽快加强。

1.7 综合题

这块的题目,面试官一般会问的比较深入。比如如何设计一个抢购系统,String转Integer等,这部分需要考验的就是一个人的临场应变能力,以及在平时工作中系统设计能力的积累,以及考虑问题是否周到等。也有可能会对你简历上面写的系统的设计进行详细的询问,所以在你写简历的时候,千万不能把自己不熟悉的内容写上去,而且自己又讲不清,这样一般会被直接pass掉。

当然也会问一些常用的maven的命令,设计模式的题目(这部分问的比较多的就是单例模式)。

2 HR面试

这块一般会问一些离职原因,当然也会问一些平时工作中遇到的问题,自己是如何解决的。如果聊得好,这时候HR会跟你谈薪资。问到目前薪资的时候,我目前是实事求是的告知的。这里,可能会有很多人报高一些,差不多的话,问题一般不大,如果太夸张的话,后续可能会有问题,比如让你提供银行流水等,差太多的话,可能会有诚信问题。

另外就是薪资涨幅的问题,我的原则是会事先对公司的规模这块进行考虑,然后结合目前的薪资,一般会设置一个范围(后来发现这样很不好,会处于被动),在当前薪资的基础上上浮30%的样子(可能各地有差异,不过这个会比较安全)。如果你很擅长谈这个,请忽略之。

此外,最重要的可能就是五险一金的缴纳了。一般小的公司会让你选择是避税还是不避税,这里面还是有点学问的。避税的话,可能你的公积金会很少。目前我遇到过两种,一种是每个月按照固定的额度给你交公积金,不论你以后的工资是否上涨,都跟公积金没有关系;还有一种是按照一个额度给你交,一般是工资的7%给你交,或者按照最低标准给你交。遇到这种情况,请自己慎重考虑是否需要接收offer。

最后,福利这块也可以问问,比如问一些年终奖,年假,加班调休等。

1240

自己整理的一份俩百多页Java核心知识点PDF,有一说一这个核心知识宝典,可是给了我巨大的帮助,帮我斩获了很多的offer,这份pdf知识点可以分享给大家×××某人 资料即可免费领取

面试题

主要包括索引,事务,优化等方面,以在面试中高频的问句形式给出答案.

索引相关

关于MySQL的索引,曾经进行过一次总结,文章链接在这里 Mysql索引原理及其优化.

1. 什么是索引?

2. 索引是个什么样的数据结构呢?

3. Hash索引和B+树所有有什么区别或者说优劣呢?

4. 上面提到了B+树在满足聚簇索引和覆盖索引的时候不需要回表查询数据,什么是聚簇索引?

5. 非聚簇索引一定会回表查询吗?

6. 在建立索引的时候,都有哪些需要考虑的因素呢?

7. 联合索引是什么?为什么需要注意联合索引中的顺序?

8. 创建的索引有没有被使用到?或者说怎么才可以知道这条语句运行很慢的原因?

9. 那么在哪些情况下会发生针对该列创建了索引但是在查询的时候并没有使用呢?

事务相关

1. 什么是事务?

2. ACID是什么?可以详细说一下吗?

3. 同时有多个事务在进行会怎么样呢?

4. 怎么解决这些问题呢?MySQL的事务隔离级别了解吗?

5. Innodb使用的是哪种隔离级别呢?

6. 对MySQL的锁了解吗?

7. MySQL都有哪些锁呢?像上面那样子进行锁定岂不是有点阻碍并发效率了?

表结构设计

1. 为什么要尽量设定一个主键?

2. 主键使用自增ID还是UUID?

3. Why requirement field is defined as not null?

4. If you want to store the user's password hash, which fields should be used for storage?

Storage Engine Related

1. What MySQL storage engine support?

Scattered problems

1. MySQL varchar, and char in what is the difference.

2. varchar (10) and int (10) What is the meaning?

3. MySQL's binlog There are several entry format? What is the difference respectively?

4. Large paging how to deal with?

5. cared about business systems inside sql consuming it? Statistics slow query anyway? Queries on how slow optimized?

6. The above-mentioned lateral and longitudinal partition table part tables, they can give an example of a suitable difference?

7. What is a stored procedure? What are the advantages and disadvantages?

8. talk about three paradigms

9. MyBatis in #

Readers welfare

For face questions on the above, I summed up the Internet company java programmers involved in most of face interview questions and answers made the document architecture and free for everyone to share video material (including Dubbo, Redis, Netty, zookeeper, Spring cloud , distributed, high concurrency architecture technical information), hoping to help review your pre-interview and find a good job, but also saves you the time to search for information online learning. Rational use of every minute of their own time to enhance their learning, do not use the "no time" to hide his ideological laziness!

Access: easy data compilation ××× people can get free. The above documents are also required pdf oh

1240


Guess you like

Origin blog.51cto.com/14456091/2446613