Reference face questions

Face questions module describes
Having said that, following into the subject of our article, we face questions this, the content contained nineteen module: Java-based, container, multithreading, reflection, copy of the object, Java Web modules, exceptions, network, design patterns, Spring / Spring MVC, Spring Boot / Spring Cloud, Hibernate, Mybatis, RabbitMQ, Kafka, Zookeeper, MySql, Redis, JVM.

Knowledge may not need to see the back of the JVM framework and modules for beginners, readers and friends according to their own circumstances, would select the module to read.

DETAILED interview questions
208 interview questions, the specific content with the view below.

A, Java foundation
JDK and JRE What is the difference?

What is the difference between == and the equals?

hashCode two objects () are the same, equals () certainly is true, right?

What is the role in the final of java?

java in Math.round (-1.5) equal to how much?

String belongs to the basic data type?

What are the operating string java class? What is the difference between them?

String str = "i" and the String str = new String ( "i") the same?

How to reverse a string?

Common methods of the String class are those?

An abstract class must be abstract way?

General classes and abstract classes What are the differences?

Abstract classes can use the final modified it?

Interfaces and abstract classes What is the difference?

java in IO stream is divided into several?

BIO, NIO, AIO What is the difference?

What are the common methods Files?

Second, the container
java container What are?

Collection and Collections What is the difference?

What is the difference between List, Set, Map that?

HashMap and Hashtable What is the difference?

How do you decide to use HashMap or TreeMap?

HashMap talk about the realization of the principle?

HashSet talk about the realization of the principle?

What is the difference between ArrayList and LinkedList?

How to convert between arrays and List?

What is the difference between ArrayList and Vector are?

What is the difference between Array and ArrayList?

What is the difference in the Queue poll () and remove ()?

Which collection class thread safe?

What iterator Iterator that?

Iterator how to use? What are the characteristics?

Iterator and ListIterator What is the difference?

How to ensure that a collection can not be modified?

Third, multi-threaded
parallel and concurrent What is the difference?

The difference between threads and processes?

What daemon threads are?

What are the different ways to create a thread?

Say something runnable and callable What is the difference?

Thread What state?

sleep () and wait () What is the difference?

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

Thread run () and start () What is the difference?

Create a thread pool, which has several ways?

What are the thread pool status?

Thread pool submit () and execute () method What is the difference?

In java program how to ensure the safe operation of multi-threaded?

What is the principle of multi-threaded lock upgrade is?

What is a deadlock?

How to prevent a deadlock?

What ThreadLocal that? What are the usage scenarios?

Talk about synchronized to achieve the underlying principle?

What is the difference between synchronized and volatile?

synchronized and Lock What is the difference?

What synchronized and ReentrantLock difference is?

Talk about atomic principle?

Fourth, reflecting
what is reflection?

What is java serialization? You need to serialize under what circumstances?

What Dynamic proxies are? Which applications have?

How to achieve dynamic proxy?

Fifth, the object copy
Why use clone?

How to achieve the object clone?

What deep copy and shallow copy difference is?

Six, the Java Web
JSP and servlet What is the difference?

Which have built-in objects jsp? What role are?

Talk about four kinds of scopes jsp?

session and cookie What is the difference?

Talk about the working principle of the session?

If the client ban cookie enables session still work?

What is the difference and spring mvc struts are?

How to avoid sql injection?

What is XSS attack, how to avoid?

What is CSRF attack, how to avoid?

Seven, abnormal
difference between throw and the throws?

final, finally, finalize what is the difference?

try-catch-finally in which part can be omitted?

try-catch-finally, if in return the catch, finally will be implemented?

Common exceptions like what?

Eight, the network
what http response code 301 and 302 represent? What's the difference?

The difference between forward and redirect?

Description of the difference between tcp and udp?

Why tcp three-way handshake, the two can not I? why?

Talk about how tcp stick package is produced?

What are the OSI seven-layer model?

get and post requests What are the differences?

How to achieve cross-domain?

Talk about JSONP realization of the principle?

Nine, design patterns
say something you're familiar with design patterns?

Simple factory and abstract factory What is the difference?

Ten, Spring / Spring MVC
Why use spring?

Explain what is aop?

Explain what is ioc?

What are the main module spring there?

spring commonly used injection method What?

The spring bean thread-safe?

spring supports several bean scopes?

spring bean automatic assembly what way?

spring Affairs implementations What?

Talk about spring of transaction isolation?

Talk about spring mvc running processes?

Which components have spring mvc?

What is the role of @RequestMapping?

What is the role of @Autowired?

Eleven, Spring Boot / Spring Cloud
What is spring boot?

Why spring boot?

What spring boot configuration file is the core?

spring boot configuration file, which has several types? What's the difference?

spring boot ways in which heat can be achieved deployed?

jpa and hibernate What is the difference?

What is the spring cloud?

What is the role of spring cloud breaker?

spring cloud core components of what?

Twelve, Hibernate
Why use hibernate?

What is ORM framework?

How to view the print hibernate in the console sql statement?

There are several ways to search for hibernate?

hibernate entity class may be defined as the final it?

Use Integer and int mapping in hibernate in doing what is the difference?

How hibernate works?

get () and load () of the difference?

Talk about caching mechanism to hibernate?

What objects hibernate state?

What is the difference in hibernate in getCurrentSession and openSession is?

hibernate entity class must be no-argument constructor do? why?

Thirteen, Mybatis
the mybatis difference in # {} and $ {} What?

There are several ways mybatis page?

RowBounds are all one-time query results? why?

What is the difference mybatis logical page and physical page is?

mybatis support lazy loading? What is the principle of lazy loading?

Mybatis talk about the cache and secondary cache?

Mybatis and hibernate difference of what?

What actuator (Executor) mybatis there?

What The principle mybatis pagination plug-in is?

mybatis how to write a custom plug-in?

Fourteen, RabbitMQ
RabbitMQ usage scenarios What?

What are the important role rabbitmq there?

What are the important components rabbitmq there?

What is the role rabbitmq in vhost is?

rabbitmq how news is sent?

rabbitmq how to ensure the stability of the message?

rabbitmq how to avoid message loss?

To ensure that the message persistence conditions for success are there?

rabbitmq persistence What are the disadvantages?

There are several types of broadcast rabbitmq?

rabbitmq how to achieve delayed message queue?

rabbitmq cluster What's the use?

What type of node rabbitmq?

rabbitmq Cluster Setup what issues need attention?

rabbitmq each node is a complete copy of the other nodes it? why?

rabbitmq cluster node only one disk crashes What happens?

rabbitmq cluster nodes stop order has requirements?

Fifteen, Kafka used to live
Kafka used to live alone can use it from the zookeeper? why?

kafka There are several strategies for data retention?

kafka also set at 7 and 10G clear the data, the fifth day when the news reached 10G, this time kafka to how to deal with?

What would cause kafka run slower?

Use kafka cluster what needs attention?

Sixteen, Zookeeper
what zookeeper that?

zookeeper What are the features?

There are several deployment models zookeeper?

zookeeper how to ensure the synchronization from the master node status?

Why should the master node in the cluster?

There are three servers in the cluster, one node goes down, this time zookeeper can also use it?

Talk about the notification mechanism zookeeper?

Seventeen, MySql
what three paradigms database is?

An increment table inside a total of seven data, delete the last two data, restart the mysql database, and insert a piece of data, this time id is a few?

How to get the current version of the database?

ACID is an say what?

What is the difference between char and varchar?

What is the difference between float and double?

Within the mysql connection, connect the left and right connection What is the difference?

mysql index is how to achieve?

How to verify whether the index mysql meet the demand?

Talk about the database transaction isolation?

Mysql talk about common engine?

Talk about mysql row locks and table locks?

Say something optimistic and pessimistic locking?

mysql troubleshooting Which means there?

How do performance optimization of mysql?

Eighteen, Redis
what redis that? What are the usage scenarios?

redis What are the features?

redis and memecache What is the difference?

redis Why is single-threaded?

What is Cache penetrate? How to deal with it?

redis supported data types are there?

redis support java client has what?

jedis and redisson What are the differences?

How to ensure the consistency of the data cache and the database?

redis persistence There are several ways?

redis how to achieve distributed lock?

What redis distributed lock defective?

How do redis memory optimization?

What redis elimination strategy?

redis common performance problems What? What is the solution?

Nineteen, JVM
talk about the main components of the jvm? And its role?

Talk about jvm runtime data area?

Talk about the difference between the stack?

What queue and stack is the? What's the difference?

What is a parent delegation model?

Talk about the implementation process of class loading?

How to determine whether an object can be recycled?

What are reference types in java?

Talk about what jvm garbage collection algorithm have?

Talk about what jvm garbage collector?

Details about the CMS garbage collector?

The new generation and the old generation garbage collector garbage collector has what? What's the difference?

Brief generational garbage collector is how to work?

Talk about jvm tuning tool?

Commonly used parameters jvm tuning what you are?

Guess you like

Origin www.cnblogs.com/LoveShare/p/11017160.html