I believe that many students who are engaged in Java have experienced torture from interviewers, and sometimes even all kinds of weird questions! Today I will tell you about interview questions that are often asked in Java interviews.
The interviews all test the basics of Java. If you have good basics, it is easy to get into the company. Generally, the following questions will be asked:
1. The difference between String, StringBuffer and StringBudilder
2 .The difference between ArrayList, vector, etc.
3. The difference between hashMap and hashTable
4. Multi-threading implementation and methods
5. Regarding passing parameters, test the transfer Is it itself or a copy, such as a(String value); is the value parameter of the a method passed itself or a copy?
6. Other questions are the most basic and can basically be answered
There is knowledge about frameworks, such as spring dependency injection, interceptors if the transaction is more in-depth, etc.
If you take the test on other frameworks, the questions will basically be relatively basic, and if it is difficult, you will rarely be asked
In terms of db, simply test your sql. You may write several tables to check what makes you write sql. It mainly tests multi-table connection query, grouping, grouped query, sorting, maximum and minimum, etc. to see if you are proficient in sql. .
The above is the detailed content of What to ask in java interview. For more information, please follow other related articles on the PHP Chinese website!