Programmers all applauded "Java Interview Stunts (including 9 topics)" a must-have for Spring 2021!

After reading the interview book given by the P8 boss, I finally stepped into Ali under the condition of "multi-person answer".

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

This article contains 9 topics:

Topic 1: Java basic interview questions and analysis

Topic 2: Algorithm and Programming Interview Questions and Analysis

Topic 3: Algorithm and Programming Interview Questions and Analysis

Topic 4: Database Interview Questions and Answer Analysis

Topic 5: Framework Technical Interview Questions and Analysis

Topic 6: Questions and Answers to the Redis Soul of Interviewers

Topic 7: Analysis of Springboot's Best Answers

Topic 8: Spring MVC development notes

Topic 9: ZooKeeper distributed process and technical analysis

Excuse me, this article has been compiled into a PDF file by the editor, and friends who need interview questions, analysis and review materials  can click on the portal ! !

Java basic interview questions and analysis

  1. Can multiple classes (not inner classes) be included in a "java" source file? Are there any restrictions?
  2. How to break out of the current multiple nested loops in JAVA?
  3. Can the switch statement work on byte., can it work on long, and can it work on String?
  4. shorts1 = 1; s1 = s1 + 1; what's wrong? shorts1 = 1; s1 += 1; what's wrong?
  5. Can a Chinese character be stored in a char variable? Why?
  6. Use the most efficient method to calculate what 2 times 8 is equal to?
  7. Please design a 10 billion calculator?
  8. When using the final keyword to modify a variable, should the reference not be changed, or the referenced object cannot be changed?
  9. What is the difference between "=" and equals method?
  10. What is the difference between static variables and instance variables?
  11. Is it possible to make a call to a non-static method from within a static method?
  12. The difference between Integer and int
  13. How much is Math.round(11.5)? Math.round(-11.5) is more
  14. What is wrong with the following code?
  15. Please tell the difference between the scope of public, private, protected, and when it is not written
  16. The difference between Overload and Override. Can the Overloaded method change the type of return value?
  17. Can Constructor be overridden?.
  18. Can an interface inherit an interface? Can an abstract class implement an interface? Can an abstract class inherit an interface?
  19. Body class (concrete class)? Is it possible to have a static main method in an abstract class?
  20. When writing the clone() method, there is usually a line of code. What is it?
  21. What are the characteristics of object-oriented.
  22. What is the mechanism to achieve polymorphism in java?
  23. What is the difference between abstract class and interface?
  24. Whether the abstract method can be static at the same time, whether it can be native at the same time, and whether it can be at the same time
  25. synchronized?
  26. What is an inner class? The difference between Static Nested Class and Inner Class.

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

Algorithm and programming interview questions and analysis

  1. Write a program to alternately merge the words in the a.txt file with the words in the b.txt file into the c.txt file
  2. , The words in the a.txt file are separated by carriage returns, and the b.txt files are separated by carriage returns or spaces.
  3. Write a program to copy all the .java files in the d:java directory to the d:yjad directory, and copy the original
  4. The extension of the incoming file is changed from .java to jad.
  5. Write a function to intercept a string, the input is a string and the number of bytes, and the output is intercepted by bytes
  6. String, but ensure that the Chinese characters are not intercepted by half, such as "我ABC", 4. You should intercept "我AB" and enter "我ABC".
  7. ABC Han DEF", 6, should output "My ABC" instead of "My ABC + half of Han".
  8. There is a string containing Chinese characters, English characters and numeric characters. Please count and print out each
  9. The number of characters. .......
  10. Explain the binary tree encountered in life, use java to realize the binary tree
  11. Read all the names from a text file similar to the following, and print out the repeated names and the number of repetitions, and sort them by the number of repetitions.
  12. What are the methods for sorting? Please list. Implemented in JAVA-a quick sort.
  13. There is an array a[n], use java code to reverse the order of the array elements.
  14. Amount conversion, the amount of Arabic numerals is converted into the traditional Chinese form such as: (¥1011) -> (one thousand and one hundred and one yuan) output

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

 Java web interview questions and analysis

  1. Tomcat's optimization experience
  2. The difference between the GET and POST methods of HTTP requests..........
  3. Explain what is a servlet; ........
  4. Tell me about the life cycle of Servlet? ...109
  5. Servlet basic architecture
  6. The difference between forward() and redirect() in SERVLET API? ...109
  7. Under what circumstances doGet() and doPost() are called? .........................109
  8. The main methods of the Request object:
  9. The difference between forward and redirect.......
  10. What is the difference between request.getAttribute() and request.getParameter()? ............111
  11. What are the built-in objects of jsp? What are their functions? What are the methods?
  12. What actions does jsp have? What are their functions? ......
  13. Commonly used commands of JSP ...112
  14. What is the difference between dynamic INCLUDE and static INCLUDE in JSP? ... 112
  15. What are the two jump methods? What is the difference?
  16. The method of object transfer between pages........113
  17. What are the similarities and differences between JSP and Servlet, and what is the connection between them? ....... 113
  18. What are the technologies to achieve each part of MVC? How to achieve it? ................. 113
  19. In the process of web application development, we often encounter outputting certain encoded characters, such as iso8859-1, etc.,
  20. How to output a string with a certain encoding?
  21. Enter n numbers and separate them with commas; then you can choose to sort in ascending or descending order; press the submit button and it is
  22. Another page shows what sort of order, the result is, provide reset

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

Database interview questions and answer analysis

  1. Use two methods to list the information of each employee according to the department number from high to low and salary from low to high.
  2. List the number of employees in each department whose salary is higher than the average salary of the department and department number, and sort by department number
  3. What is the three paradigm of database
  4. Tell me some experience in database optimization
  5. What is the difference between union and union all?
  6. Use a SQL statement to find out the names of students whose scores are greater than 80 in each course?
  7. Combination of competitions between all departments.
  8. Each month has more subjects than 101 subjects.
  9. Statistic annual and monthly information
  10. Delete redundant student information that is the same except for different id numbers
  11. How many flight query questions on aviation network?
  12. Find out information about employees whose salary is higher than that of the manager
  13. Find the number of students older than 12 years old brought by each teacher younger than 45 years old............ 135
  14. There is a point field in a user table. If there are more than 1 million users in the database, if you want to reset the points to zero in the early morning of the first day of each year, what will you consider and what solution will you think of?
  15. -A user has multiple roles. Please find out other users in the table that have all the roles of the user.
  16. Three ways to register Jdbc driver...139
  17. How to call a stored procedure with JDBC
  18. PreparedStatement in JDBC is better than Statement.
  19. Write a program code that uses jdbc to connect and access oracle data?
  20. The role of Class.forName? Why use it?
  21. 26. How to solve paging under large data volume?
  22. Use JDBC to query student transcripts and write out the main code (exam probability is extremely high)
  23. What is the working mechanism of the data connection pool?
  24. Why use ORM? What is the difference with JDBC?

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

Framework technical interview questions and analysis

1. Talk about your understanding of Struts

2. Talk about your understanding of Hibernate.

4. Your understanding of Spring

5. Talk about the Action servlet in Struts.

6. Advantages and disadvantages of Struts: 1. Realize the MVC mode with clear structure, so that developers only pay attention to the realization of business logic

7. Application of STRUTS (such as STRUTS.

8. Talk about the difference between struts1 and struts2.

9. The difference between update() and saveOrUpdate() in hibernate, and the difference between load() and get() in session.

10. Briefly describe the advantages and disadvantages of Hibernate and JDBC? How to write-a one to many configuration file

11. What is the difference between iBatis and Hibernate?

12. Write Hibernate's one-to-many and many-to-two-way association orm configuration?.

12. What is the role of hibernate's inverse attribute?

13. How to reflect the DAO design pattern in DAO?

14. How to configure the delegation scheme in spring+Hibernate?

15.How to configure the delegation scheme in spring+Hibernate?

16.Hibernate performs multi-table query and takes several fields in each table, that is to say, the result set of the query does not have an entity class corresponding to it. How to solve

17. Introduction 1-Hibernate's second-level cache

18. What does Spring's dependency injection mean? Give-a Bean's message attribute, string type, and annotation

What to do with the XML configuration file whose input value is "Hello"

20. What is spring's I0C AOP

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

Also includes

Interviewer Redis Soul Questions Answers

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

Springboot hundred battles answer analysis

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

Spring MVC development notes and interview questions analysis

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

ZooKeeper distributed process and technical analysis

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

Last reminder, be sure to forward (in order to help more programmers who need him) , and then click on the portal ! !

Hardcore programmers all admit that this "interview miss", how can you get a high salary if you can't learn it?

 

Guess you like

Origin blog.csdn.net/Java6888/article/details/114948408