A company interview experience Java 3 years (i)

Source: Internet
Author: User
Tags mongodb redis zookeeper

Go to the interview this afternoon, or from Tianjin to Beijing.

The company looked at the environment is very tall, I was not in the Beijing circle, do not know the specific situation of the company, I interviewed the position is outsourced, listen to outsourced HR said, the company focus on the foundation, but also combined with the project to ask you the relevant technology specific implementation mechanism. I do not prepare anything, learning is planned, the car will look at the interview questions, later ...

The first article said, I am the traditional finance, wants to change the Internet, uses the technology, I have used on the Zookeeper,dubbo, the cache redis. Heard of is nginx and tomcat combination, there is MQ, these kinds of ways to achieve distributed, non-relational database I self-study of the MongoDB and Redis.

After the meticulous teaching of HR, I was completely biased, because I have these several technologies are realized, no project experience, she let me say that these things have been used in the project, anyway, these things in the project to set up a configuration file on the matter, back to use, said there was no time to see the specific implementation, anyway, you are not very old, Work time is not long, I this inner tangle Ah, last night made up a night, did not sleep well, always afraid to be asked.

The results of today's interview, just ask me the Java Foundation, but also let me give him what to paint. Here's the start:

One, string a= "123"; stirng b=new string ("123"); A==b?

This test is based on the concept of a string pool

Second, know the difference between heap and stack.

I said Java Virtual machine is divided into 5 chunks, respectively, program counters, virtual machine stacks and local method stack, heap and method area

Third, the heap of the recovery algorithm and I say it again.

What do you mean by the algorithm of accessibility?

Five, volatile principle

Six, lock you know which. Synchronize the common method of modifying static method differences.

I'm talking about reading locks and writing locks, and synchronize. Lock object or lock class

Seven, HASHMAP data structure.

Eight, a simple talk about the binary tree, balance trees and red and black trees.

九、一个 queues, where there are male and female, mixed arrangement, design a set of algorithms to let them in accordance with the order of men and women cross arrangement.

How do you deal with multithreading in a project?

When dealing with documents, how large is the content of your document and how it is achieved.

12, your project is how to use spring to manage transactions, several management methods of the difference in parameters.

12, Bio,nio,aio, to talk about your understanding of these kinds of Io, this question to me to ask the monk, just Baidu's answer, looked very complicated ~

13, what spring is. Talk about your understanding of spring and whether you know something about spring boot and spring security.

14. What other techniques have you used? It's not written.

I put Redis, Mongodb,zookeeper,dubbo,mq said, also said the project also used, he really asked me the principle, I put these several data structure simply said a bit, did not ask Dubbo and MQ, do not know why, and then he asked what I did not understand, I said I do not know this piece, and then passed, this nonsense made, so round the past. Mostly I don't know if he believes it or not.

XV, why use the relational database, is not also very good with the relationship database.

Meng, this open type of question ~ really do not know how to answer, and once the answer, and then to the depths to ask why, the death of the worse ~

16, you have used Apache, Tomcat is it, what is the relationship between them, understand the implementation of Tomcat inside the principle Mody

17, Nginx and Apache what is the relationship.


A bucket said down, almost 1:30 P.M., also forgot to bring a resume, let others to print, mistakes Ah ~

Then the time to go out is 3 o'clock in the afternoon very bar, ask me how much, also said to go back to discuss, can have two side, ask what don't know ~

Originally these questions want to attach the answer, but too much, too lazy to write, write these written for more than half an hour (while writing on the Internet to find the answer) ~

That's it, come back and have an interview, interested can be seen since.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.