Finishing the move last fall face questions this core back-end development (partial Java), successfully got the Tencent offer, decided to take it out contribution

Foreword

In order to recruit the autumn of 2019, the finest learned that this is a fine face questions, and pick only the important and difficult, the finishing including Java, data structures and algorithms, computer networks, operating systems, databases and so on. If you can face these questions are mastered, then I'm sure you can get a good offer, the landlord alone, this plane took questions Tencent offer, although little is interviewing Java back-end development, but on data structures and algorithms, operating systems, databases, computer networks these, no matter what positions are common drops

As a landlord conscience, I also became this article sort Epub and PDF versions, to facilitate the review, get to see the end the way

1. Java chapter

(1). Java Basics

  • Java difference in the == and equals and hashCode
  • The difference between int and integer
  • Meaning abstract class
  • The difference between abstract classes and interfaces
  • Can I create an immutable object that contains a variable object?
  • Talk about the understanding of java polymorphism
  • String、StringBuffer、StringBuilder区别
  • Generics in the difference between extends and super
  • The difference between processes and threads
  • The difference between final, finally, finalize the
  • Serialization way
  • Convert string to integer manner and principle
  • Whether static properties and static methods can be inherited? It can be rewritten? And why?
  • Members of the inner class, understanding the static inner classes, local inner classes and anonymous inner classes, as well as project application
  • Talk about common coding?
  • How to format date?
  • Java's exception system
  • What is unusual chain
  • The difference between the throw and throws
  • Principles of reflection, reflecting what three ways to create a class instance yes.
  • Among the four kinds of java references
  • What deep copy and shallow copy difference is?
  • What is the compiler constants? What are the risks of using it?
  • You intern String object () be familiar with it?
  • a = a + b and a + = b Is there any difference?
  • The difference between static and dynamic proxy agent, what the scene to use?
  • What is the mechanism implemented in Java polymorphism is?
  • How a Java object serialization to a file?
  • Talk about your understanding of Java reflection
  • Talk about your understanding of Java annotations
  • Talk about your understanding of dependency injection
  • Say something generic principles and examples
  • Java in String understanding
  • Why String designed to be immutable?
  • equal and hashCode methods of the Object class rewrite, and why?

(2) Multi-threaded

  • Three ways to turn thread?
  • The difference between talk about processes, threads, coroutines
  • How to communicate between threads?
  • What is Daemon thread? What does it mean?
  • Daemon thread local differences and thread in java?
  • Why should there be a thread, rather than the single process?
  • What is reentrant lock (ReentrantLock)?
  • What is the thread group, why not recommended in Java?
  • Optimistic and pessimistic locking and understanding of how to achieve, what are the implementation?
  • What thread scheduling algorithm is used in Java?
  • Synchronization method and synchronized block, which is the better choice?
  • run () and start () method distinction
  • How to control a method allows concurrent access to the number of threads?
  • Different in Java and wait seelp methods;
  • yield method of the Thread class in what role?
  • What is immutable, it has to write concurrent applications going to help?
  • Talk about understanding wait / notify keywords
  • Why wait, notify and notifyAll these methods are not thread inside the class?
  • What causes threads blocked?
  • Talk about the method of synchronization in java
  • Talk to Synchronized keyword, class locks, lock method, reentrant lock understanding
  • Multi-thread access and the role of static synchronized method
  • The same class which two synchronized method, the problem of two threads access
  • How do you make sure that the thread main () method where the Java program is the final end of the thread?
  • To talk about the role of the volatile keyword
  • To talk about the role of ThreadLocal keywords
  • Talk about understanding the NIO
  • What are Callable and Future?
  • Difference ThreadLocal, synchronized and volatile keywords
  • The difference between synchronized and Lock
  • ReentrantLock, synchronized and volatile Compare
  • What is the difference in Java CycliBarriar and CountdownLatch?
  • CopyOnWriteArrayList can be used in what scenario?
  • ReentrantLock internal implementation
  • lock principle
  • What Semaphore in Java that?
  • InvokeAndWait in Java and invokeLater What is the difference?
  • What are you doing multi-threading cycle is?
  • How to detect whether a thread has a lock?
  • The four necessary conditions for deadlock?
  • Whether the object class lock and the lock will affect each other?
  • What is the thread pool, how to use?
  • Java threads in the pool submit () and execute () method What is the difference?
  • Differences in Java interrupted and isInterruptedd methods?
  • Achieve blocking queue in Java
  • BlockingQueue description:
  • Multithreading have any questions to pay attention?
  • How to ensure the safety of multi-threaded file read and write?
  • Multi-threaded HTTP principle
  • Realization of HTTP
  • Achieve producer-consumer model
  • What in Java ReadWriteLock that?
  • Written in Java will lead to a deadlock in the program, you will be how to solve?
  • SimpleDateFormat is thread safe?
  • Synchronized set of concurrent collections in Java What is the difference?
  • What degree of concurrency in Java ConcurrentHashMap is?
  • What is Java Timer class? How to create a task specific time interval?

(3) The set

  • Collection and Collections of the difference?
  • A modification of the object equals method signature, then use a HashMap to store the object instance when the equals method which will call?
  • The difference between List, Set, Map of
  • List and Map implementations and storage
  • The principle of HashMap
  • How HashMap put data (from HashMap to explain the source point of view)?
  • HashMap expansion operation is how to achieve?
  • What are the different HashMap in JDK1.7 and JDK1.8 in?
  • The principle of ConcurrentHashMap
  • The principle HashTable
  • Comparison of ArrayMap and HashMap
  • The difference between HashMap and HashTable
  • The difference between HashMap and HashSet
  • Hash collection Set realize how to prevent collisions
  • The difference between arrays and linked lists
  • What is the difference between Array and ArrayList? When more suitable Array
  • What .EnumSet that?
  • What is the difference Comparable and Comparator interfaces?
  • Quick failure mechanism Java collections of "fail-fast"?
  • The difference between the fail-fast and fail-safe?
  • What BlockingQueue that?
  • What is the role Iterator class
  • poll () method and remove () method difference?
  • Why JAVA8 of ConcurrentHashMap abandoned segmented lock, there is a problem, and if you come to design, how to design.

(4).JVM

  • It will trigger initialization class under what circumstances?
  • Talk about your understanding of the analysis and dispatched.
  • You know what, or what your line Using GC policy? Is there any advantage, is useful when what scene?
  • Ja0v00a class loader package includes 00 species to get accustomed 0? ⽗ submenus that the relationship between them is how? Parents delegate mechanisms mean? what is the benefit?
  • How Custom ⼀ a class loader? Use what you had or you need ⼀ a Custom under what scenario class loader it?
  • What parameters are set heap memory?
  • Perm Space saved what data? Cause OutOfMemory it?
  • In doing GC, in what order ⼀ objects to be moved in various Space memory is?
  • Have you ever encountered OutOfMemory problem? You are how to deal with this problem? What have you learned in the process there?
  • StackOverflow anomalies have never met before? Shoots as usual you guess will be triggered under what circumstances? How to specify the stack zoomed ⼩ ⼀ threads? How many shoots as usual you write?
  • Memory model and a partition, you need to detail what to put in each area.
  • Denomination: Static and dynamic assignment assignment.
  • What optimization strategy at runtime virtual machine
  • Please explain the difference between StackOverflowError and OutOfMemeryError of?
  • In the JVM, how to determine whether an object death?

computer network

  • 10M load a picture from the network, said Caution
  • OSI network architecture and TCP / IP protocol model
  • TCP three-way handshake and four wave
  • Why TCP connection requires three-way handshake, the two can not be what, and why?
  • How TCP protocols to ensure the reliability of transmission
  • The difference between TCP and UDP
  • What are the TCP and UDP applications
  • HTTP1.0 and 2.0 difference
  • HTTP packet structure
  • HTTP connections long and short connection?
  • The difference between HTTP and HTTPS and how to implement security
  • How to verify the legitimacy of the certificate
  • Get the difference and the POST
  • TCP's congestion handling
  • How TCP flow control
  • TCP and UDP respectively corresponding to the common application layer protocol
  • Classification of IP addresses
  • With only Mac also need to address why IP address?
  • Switches, hubs and routers What is the difference?
  • The role of bridge
  • ARP ARP is a simple language to explain how it works.
  • Network Interface Card (NIC) functionality?
  • IO in synchronous and asynchronous, non-blocking and blocking difference
  • The difference between URI and URL
  • Meaning in URL-encoded GET request
  • Common status code and reason phrase
  • Talk about Session, Cookie and Application
  • How to avoid browser cache
  • What is a block transfer.
  • SQL injection talk
  • DDos attack
  • DDos attack prevention methods are those?
  • What is XSS attack
  • The process of obtaining input from a URL to a page

Data Structures and Algorithms

This part of the manual to be realized some of the data structure, I summed up the following important data structures

data structure

  • List (operation check deletions)
    • Singly linked list
    • Doubly linked list
  • Queue (operation check deletions)
    • Normal queue
    • Priority teammate
  • tree
    • Binary (preamble, in sequence, after)
    • Balanced tree (as far as possible will implement the code)
    • stack
    • Red-black tree (to understand the nature, application scenarios)
    • B-tree (understanding of the nature, application scenarios)
  • Map
    • Depth-first search
    • BFS
    • Shortest Path
    • Minimum spanning tree
      • Prim's algorithm
      • Kruskal's algorithm
    • Topology
  • String
    • Knuth-Morris-Pratt algorithm
    • Boyer-Moore algorithm
  • Hash

Several algorithms thought

  • Recursion
  • Recurrence
  • greedy
  • enumerate
  • Dynamic Programming
  • Backtracking
  • Divide and Conquer

We will learn the top ten ranking algorithm

  • Selection Sort
  • Insertion Sort
  • Bubble Sort
  • Shell sort
  • Merge sort
  • Quick Sort
  • Heapsort
  • Counting Sort
  • Bucket sort
  • Radix Sort

Brush title

Cattle off network wins the sixties and seventies to offer title

leetcode

database

  • Please concise description of four kinds of transaction isolation level in InnoDB Mysql name support, as well as the distinction between progressive?
  • What's in Mysql ENUM in use is?
  • CHAR and VARCHAR difference is?
  • How transactions are implemented through the log, the better the more he says
  • Difference drop, delete and truncate the
  • The principle of locality and disk read-ahead
  • Database paradigm
  • The difference between stored procedures and triggers
  • Lock optimization strategy
  • Set up under what circumstances the index but can not be used
  • Under what circumstances should not be indexed?
  • MySQL connection outer explained, the difference between self-connected connector
  • Integrity constraints, including what?
  • Mysql storage engine, the difference myisam and innodb.
  • How to optimize SQL
  • What optimistic and pessimistic locking lock is, INNODB standard row-level locking which of two kinds, to explain its meaning.
  • MVCC meaning, how to achieve
  • MYSQL master how to solve the delay.

spring

1. spring Overview

  • What are the benefits of using Spring framework is?
  • Which modules of Spring?
  • AOP module explanation
  • WEB module explanation
  • Core container (application context) module.
  • What is the Spring IOC container?
  • What are the advantages IOC is?
  • What usually ApplicationContext implementation is?
  • Bean plants and Application contexts What is the difference?
  • Bean plants and Application contexts What is the difference?

2. spring dependency injection

  • What is Spring's dependency injection?
  • What are the different types of IOC have (dependency injection) way?
  • What is Spring beans?
  • What a Spring Bean definition contains?
  • Scope explain Spring supports several bean.
  • Singleton bean Spring Framework is thread safe?
  • Explain Spring Framework bean life cycle
  • What is important bean life cycle approach? You can reload them?
  • What is bean assembly?
  • What is the bean automatic assembly?
  • Automatic assembly interpreted in different ways.
  • What are the limitations of automatic assembly have?

3. spring notes

  • How to Open comments assembly?
  • Talk @Required, @Autowired, @Qualifier comment.

4, spring data access

  • How to more effectively use the Spring JDBC framework?
  • Access Hibernate by what means to use Spring?
  • Transaction management Spring Framework What are the advantages?

5. Spring Aspect Oriented Programming (AOP)

  • Explain AOP
  • Aspect section
  • In Spring AOP, any difference between concerns and crosscutting concerns are?
  • Notice
  • There are several different types of automatic proxy?
  • What is weaving. What is the difference woven into the application?

6. springMVC

  • What is Spring MVC framework?
  • DispatcherServlet
  • WebApplicationContext
  • What is the controller of Spring MVC framework?
  • @Controller comment
  • @RequestMapping comment

JavaWeb

servlet与Tomcat

  • Servlet life cycle
  • The difference between forward and redirect
  • How tomcat servlet container class instance is created? What principle is used?
  • What is a cookie? Session cookie and what is the difference?
  • Servlet security issues
  • Tomcat Connector, which has several operating modes (optimized)?

JSP

  • jsp contains static and dynamic differences included
  • Which jsp built-in objects they have? What role are?
  • The difference between jsp and servlet, the common, the scope of their application?
  • Write five kinds of commonly used JSTL tag
  • JSP is how it is executed? The efficiency is lower than SERVLET it?
  • Tell the difference between Servlet and CGI?
  • Brief design pattern of JSP.

If you want PDF or epub version, you can go to my micro-channel public number Shuai playing program get face questions , you can get the download link oh

The original essence of the article PDF send everyone

Finally, I also organize your own original essence of the article became an e-book, a total of 630 , whether you want to interview, or to enhance their cultivation, I think it will definitely be able to help you, or else I want to find a red envelope! Contents are as follows

Here Insert Picture Description

Now free to everyone, in my public numbers play program handsome to reply programmers practicing internal strength to get.

Brother dei, if I feel well written, might favor

1, pay attention to my original micro-channel public number " handsome to play programmed " on time push dry technical articles every day, focusing on write algorithm + basic computer knowledge (computer network + operating system + database + Linux), I heard that attention is not good Oh will become outstanding.

2, to a point I praise chant , so that more people can see this article, by the way inspired me, hee hee.

Author concise

Author: Hello everyone, I'm handsome, the university came from, all the way to self-study, well aware algorithms , basic computer knowledge importance, applied for a number of public MSI " handsome programmed to play " professional to write these underlying knowledge, improve our internal strength, handsome look forward to your attention, and I learn together. Reprinted Description : not authorized, prohibited reproduced

Published 83 original articles · won praise 20000 + · views 2.02 million +

Guess you like

Origin blog.csdn.net/m0_37907797/article/details/105106732