Home > Back-end >  Java interview questions, live
Java interview questions, live

Time:09-27

Ha ha ha, long time no to CSDN, recently hired a week off, can again to look for a job,
Today, record every interview in this topic, on the one hand to table record; Share out on the other hand, also hope can see the answer to the bobbin, brainstorming,
A small start-up, interview today interview questions as follows:
1, what is that combination index, to establish what are the principle of composite index, the index of the storage structure, the difference between b and b + tree tree
What isolation level is 2, database, mysql what is the default isolation level, what is not repeatable read this isolation level mechanism,
3, what database lock, mutual exclusivity
4, the system call system b interface, how to guarantee the data consistency, such as call interface, b b inside the function of the operation was successful, but the timeout when you return to a system, causing a system to system b no operation success, how to ensure the consistency of the data, what is the mechanism, the failure to call b retries to how to realize the
5, a system call b system b system calls the c system, if use the thread pool, how to allocate, this topic I don't understand what meaning, because individual novice, do not know much about the thread pool
6, to prevent SQL injection in mybatis how implementation, if a where condition like % ABC % of such conditions how to achieve
7, redis how usage scenarios in your project, my answer is the cache some configuration data, he then asked, how to ensure the redis configuration update notification to each machine,
8, do you have anything to ask me?
Ha, ha, ha, head ended in failure, in addition to the first three answered some of the remaining water all not line, make persistent efforts, come on,

CodePudding user response:

4. B to provide a unique request id based query interface state, spring provides retry based on thread level of writing is elegant;
5. Personally, I think of is three business processing system thread pool threads to sequentially, ensure thread enough business;
The difference between 6 mybatis $#
This problem may I understand there is a problem, if from the point of view of notification redis support publish-subscribe pattern;

CodePudding user response:

reference 1st floor u011619071 response:
4 b to provide a unique request id based query interface state, spring provides retry based on thread level of writing is elegant;
5. Personally, I think of is three business processing system thread pool threads to sequentially, ensure thread enough business;
The difference between 6 mybatis $#
This problem may I understand there is a problem, if from the point of view of notification redis support publish-subscribe pattern;

Thank you for your reply, how do I feel that I won't? To cry is dead,

CodePudding user response:

Company interview yesterday, a education class
Made a try first, and then the interview is based on written questions to ask, the end ask some issues such as database,
Test question is omitted,
The interview subject,
1, the rabbitmq how to avoid duplication, and message loss
2, redis how to avoid data loss, I said aof patterns, he said that if persistent a set of 3 seconds, but in 1 second when they lost, how to avoid the
In 3, handwritten jdk8 lambda expressions, is a person of the list there are age and name attribute, write back to age in lambda expressions about 60 people name,

CodePudding user response:

Ideas, make persistent efforts

CodePudding user response:

The building Lord, you do development for several years?

CodePudding user response:

The building Lord, you are doing Java development? A few years?

CodePudding user response:

Reply, the development of five years or so, but graduate already more than 5 years, technology also have order, expect the bobbin reply ah, brainstorming,
The interview today for a medical company,
Asked a lot of mq problems, such as the inside of the conceptual, routing and switching
1, the difference between static very dynamic proxy agent, spring aop's principle and by way of what kind of agent, the difference between aspectj and additional,
2, SQL optimization is how to do, when indexing the matters needing attention, use explain command to see the SQL performance, of which a few columns
3, in the system to monitor how to do, what to monitor
4, different redis data structure at the bottom of the realization of how
The difference between 5, factorybean and the beanfactory
6, the first order sequence and the sequence of traversing binary tree
7, the difference between a treemap and hashmap and the underlying data structure; The difference between red and black tree and binary tree

CodePudding user response:

With ready to looking for a job, come on,

CodePudding user response:

Ready to looking for a job, with only a 6...
# $and difference, like use the bind tag

CodePudding user response:

We haven't lambda expressions used

CodePudding user response:

refer to 7th floor suixinsuoyu12519 response:
reply, development of five years or so, but graduate already more than 5 years, technology also have order, expect the bobbin reply ah, brainstorming,
The interview today for a medical company,
Asked a lot of mq problems, such as the inside of the conceptual, routing and switching
1, the difference between static very dynamic proxy agent, spring aop's principle and by way of what kind of agent, the difference between aspectj and additional,
2, SQL optimization is how to do, when indexing the matters needing attention, use explain command to see the SQL performance, of which a few columns
3, in the system to monitor how to do, what to monitor
4, different redis data structure at the bottom of the realization of how
The difference between 5, factorybean and the beanfactory
6, the first order sequence and the sequence of traversing binary tree
7, the difference between a treemap and hashmap and the underlying data structure; The difference between red and black tree and binary tree


I also met the seventh questions had no answer,,,,

CodePudding user response:

I said a problem won't I'm glad that I can find a job

CodePudding user response:

refer to 12 floor justwannafuckyou reply:
Quote: refer to 7th floor suixinsuoyu12519 response:

Reply, the development of five years or so, but graduate already more than 5 years, technology also have order, expect the bobbin reply ah, brainstorming,
The interview today for a medical company,
Asked a lot of mq problems, such as the inside of the conceptual, routing and switching
1, the difference between static very dynamic proxy agent, spring aop's principle and by way of what kind of agent, the difference between aspectj and additional,
2, SQL optimization is how to do, when indexing the matters needing attention, use explain command to see the SQL performance, of which a few columns
3, in the system to monitor how to do, what to monitor
4, different redis data structure at the bottom of the realization of how
The difference between 5, factorybean and the beanfactory
6, the first order sequence and the sequence of traversing binary tree
7, the difference between a treemap and hashmap and the underlying data structure; The difference between red and black tree and binary tree


I also met the seventh questions had no answer,,,,


Two forks tree is balanced and the red and black tree is a self-balancing, when inserted into a value will be placed to query data and getting an intermediate value, then regenerate the equilibrium structure of a tree so efficiency will be high

CodePudding user response:

The novice like me to see a face of meng force,,,,,,,,

CodePudding user response:

Well, what can we do, the work is not done, zeal ah, I don't know why I company always ask some of these problems, I don't interview a senior post,
Yesterday the interview a company,
Ask the question,
What is 1, the String of the underlying implementation
2, the Java class loader how many
3, the Gc recycling knowledge
4, Java memory structure
5, how to realize the big concurrent

CodePudding user response:

CSDN BBS redesign again? Passed by, the top one!

CodePudding user response:

CodePudding user response:

CodePudding user response:

Rocket, as are interviewing twist screws, interview asked so much underlying principle, seldom used in work, do not brush the interview questions hard to answer,

CodePudding user response:

Look, don't talknullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull