Java interview questions to be asked Memoirs

The first home game company:

1, the difference between interfaces and abstract classes? When will choose to use them?

2, the difference between the arraylist and linkedlist?

3, said that under the thread of what state? Which method to start a thread?

4, usually with too many threads it?

5, which you used design pattern spring? Under tell you used.

5, said that under this project you process a business, how to do, there is sql implementation, or in the code?

 

The second government-Software:

1, pen questions, make a list of additions and deletions to change search, page templates, paging query can be a plus.

 

Third outsourcing companies:

1, spring affairs, the principle of affairs, how to achieve? Multiple operations, only one of the Rewind, how to achieve?

2, used in the project you lock

3, spring reflection of

4, git branch

5, arraylist Why should there be an index (memory structure)? Why linkedList do not need to index?

6 difference, get and post, if chosen to use get it? (Http specification). get it how to pass multiple parameters to a post that?

7, the use of redis project, the use of redis how you do this function?

 

The fourth start-up technology companies:

1, the difference between abstract classes and interfaces?

2, overloading and rewrite the difference?

3, == and equals the difference?

4, like banks generally what data type to store the account to use?

5, Java generics you how to use?

6, the difference between the arraylist and linkedlist? Thread is safe, how to solve?

7, hashmap data structure, whether the thread safety, how to solve?

8, concurrenthashmap underlying structure, how it thread safe?

9, the thread is how to start, how to create a thread, how to get the value in the thread, it can not directly run () run?

10, used the thread pool it? How the thread pool to achieve?

 

Continually updated.

Published 753 original articles · won praise 72 · views 130 000 +

Guess you like

Origin blog.csdn.net/qq_41723615/article/details/104770050