Interviewer: Go back and wait for the notice first! Java programmer: Do I still have a chance for this Java position?

Interviewer: Seeing that your resume is well written, first introduce yourself briefly?

Me: Good guy! I’m Xiao Cheng. I have been working for two and a half years. I’m currently responsible for the company’s chores, ah no, I’m responsible for maintaining the company’s two projects...

Interviewer: hmmm, how much Spring is used in your project?

Me: It's ok, basically it can be used. (Usually it is used by Baidu)

Interviewer: What do you mean when you talk about using Spring AOP?

Me: (I have memorized the answer!) AOP is aspect-oriented programming, which can encapsulate the logic or responsibilities that are not related to the business but are called by the business modules, so as to reduce the repetitive code of the system and reduce the coupling between modules , And is conducive to future scalability and maintainability.

Interviewer: Well, the understanding is great. Do you know any Spring extension points?

Me: Extension point? BeanDefinition? BeanFactory?

Interviewer: Anything else?

Me: Nothing.

Interviewer: Well, do you know which mainstream frameworks on the market extend Spring and how to extend it?

Me: I know that MyBatis extends Spring! How to expand...Uh, I don’t know much, I haven’t gotten into the others, I don’t know much. I also...

Interviewer: I understand, then you briefly explain the life cycle of Spring beans.

Me: Well , I only remember that the process was a bit complicated, specific, I can’t remember...

Interviewer: Let me ask you something else,

Does Spring support circular dependencies; under which circumstances?

How to understand beanDefinition in Spring system?

Talk about why Spring needs to use the three-level cache when dealing with circular dependencies?

Are there any post processors in the Spring system? Can you talk about the main function?

Me: This...

The interviewer looked at his watch: Oh, it's already 3 o'clock in the afternoon, so late? Come here today, do you have any questions for me?

Me: Did I hang up?

Interviewer: No, no, you go back and wait for the notice first!

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

 


As the most popular java development technology, Spring has excellent internal source code design. If you do not know Spring, then the interviewer will probably let you go home and wait for notice.

What is Spring?

There is a construction site where hundreds of people are digging holes with shovels and shovels.

If you drive an excavator, the work done in one day is equivalent to the workload of a worker a month. And this excavator is free and open source, no need to spend money to buy, just need to learn how to operate.

How would you choose?

The construction site of these hundreds of people is the enterprise application project implementation team, and the excavator is Spring.

The Spring framework provides comprehensive infrastructure support for developing Java applications. Spring includes some great features, such as dependency injection and modules out of the box:

Spring JDBC

Spring MVC

Spring Security

Spring AOP

Spring ORM

Spring Test

These modules can greatly shorten the application development time and improve our work efficiency.

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

Spring bean life cycle

But now many programmers only stay at a very shallow level of understanding of Spring. Many people only focus on the logic of the part of the code they use, and don't really understand the framework.

If you don’t understand Spring, then the interviewers from big factories won’t understand why you dare to come for an interview?

Sping overview

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

 

Explain the object/relational mapping integration module

  • Spring supports the use of an object/relational mapping (ORM) tool on top of direct JDBC by providing an ORM module. Spring supports the integration of mainstream ORM frameworks such as Hiberate, JDO and iBATIS SQL Maps. Spring's transaction management also supports all the above ORM frameworks and JDBC.

Dependency injection

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

 

What is dependency injection in Spring?

  • Dependency injection, an aspect of IOC, is a common concept, and it has many explanations. The concept is that you don't need to create an object, but only need to describe how it is created. You don't directly assemble your components and services in the code, but you need to describe which components require which services in the configuration file, and then a container (IOC container) is responsible for assembling them.

Spring Beans

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

 

What are Spring's internal beans?

  • When a bean is only used as a property of another bean, it can be declared as an inner bean. In order to define the inner bean, in Spring's XML-based configuration metadata, it can be specified in <property/> or <constructor-arg The <bean/> element is used in the /> element. The inner beans are usually anonymous, and their scope is generally prototype.

Spring annotation

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

 

What is annotation-based container configuration?

  • Compared with XML files, annotation-type configuration relies on assembly of components through bytecode metadata, rather than angle bracket declarations. Developers use annotations on the corresponding classes, methods or attributes to directly configure the component classes instead of using xml to express the bean assembly relationship.

Spring data access

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

 

Spring aspect-oriented programming (AOP)

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

 

Spring的MVC

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

For reasons of space, I won’t show the questions one by one. With 69 regular interview questions, how many can you answer correctly without going through the information?

Said at the end

Regarding the interview questions, the editor has done some summarization and sorting, which are very common interview questions, as well as the interview questions that are asked in the bytebeat interview. In fact, these interview questions are closely related to everyone's project application, and daily accumulation will be more effective than brushing the questions.

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

 

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

MySQL Interview Questions

Interviewer: Go back and wait for the notice first!  Do I still have a chance for this Java position?

SpringBoot series interview questions

......

If this article can help you, I hope you can make three consecutive times and support the editor!

 

Add the assistant WeChat mxj94670 to get the information for free !

Guess you like

Origin blog.csdn.net/java_xiaoo/article/details/110817637