A's interview experience a few years ago-record

Source: Internet
Author: User

Blog migration-I have migrated my blog to www.ijavaboy.com to better manage it. We are sorry for the inconvenience caused by no updates! New address of this article: Click me


Question: we are waiting for the Chinese New Year holiday to go home. Our friend a unexpectedly told us that she resigned. Surprised, she also talked to us about her two interview experiences the day before yesterday.

According to Mr. A, I didn't want to consider looking for a job before the Spring Festival. After all, it seems that there were very few job openings before the Spring Festival, But I was idle and I just threw out two jobs. One is an entrepreneurial company and the other is a mature company. Fortunately, I received an interview notice from two companies the next day. I was a little nervous when I was excited. After all, she just graduated.

The next day, she came to this entrepreneurial Company, which is located in the Shanghai Pudong Pioneer Park. She went early in the morning, but she had an appointment at. She dared not go in advance, it took two hours in the cold wind and waited until 10 o'clock before calling the company and saying that she had arrived. Her job is Java development. As a girl, she seems to love this line. After entering the company, the personnel staff took her into the meeting room. She sat down in the meeting room, thinking about the company, there are not many people, about a dozen, work in a very spacious room.

Just as she was traveling, she came in and stood up and gave him a look. A person of nearly 40 years, dressed in plain clothes, was quite cool. She apparently saw that his pants were full of dust, it's like the guy who came to interview her was a construction engineer who just got down from the ground. Without the previous promotion and tension, she felt that she was very kind like her father. He said to John, "Please sit down ".

 

Next, the interview started in front of a glass wall...

 

Interviewer: use Java to implement a factory method mode on the glass wall.

Small A: (think: I have read the 23 Design Patterns of gof several times, small kiss ). It took one minute to write it on the blackboard. I am still familiar with the design pattern.

Interviewer: Well, the basics are good. However, I think you have never met this question. Has socket been used?

Small A: used, used at school

Interviewer: Well, now, I want you to implement a multi-person chat program. Now there are several solutions. You can determine which solution has the least pressure on the server. Now, one premise is that each person can say a sentence within one minute. Chat rooms do not interfere with each other.

First: 10 chat rooms, with 1000 people in each chat room

Type 2: 100 chat rooms, with 100 users in each chat room

Category 3: 1000 chat rooms, with each chat room containing 10 persons

Let me know why. (After that, the interviewer went out, and John stood on the glass wall and thought about it)

10 minutes later... the interviewer came in.

Interviewer: Have you figured it out?

Small A:... (count? She doesn't know what to calculate at all. She's wondering if she's taking her multi-thread or something.) Well... I think it's the first one, because... (I can't hear it clearly, but I guess the interviewer hasn't heard it clearly)

Interviewer: Look at this. Isn't it true that everyone can say a word in one minute? Calculate it!

Small A: (I suddenly realized)... I wrote the results of the three schemes on the glass wall (I went out and shouted in the interviewer)

Interviewer: (according to the results of blackboard a) What is the difference between fact and subjective? (Two people laugh at each other ...). Have you ever touched on multithreading?

A: I know a little about it and have used it too.

Interviewer: What do you think is the core of multithreading, or what kind of problem does multithreading appear to handle.

A: I think multithreading aims to solve the concurrency problem so that a task can be executed asynchronously.

Interviewer: Well... can I use multiple threads to execute tasks concurrently for a single CPU?

A: Well, (think...) What is the essence of multithreading to solve? (I smiled. Why have you become an interviewer)

Interviewer: Haha, in fact, for a single CPU, multithreading is to solve the problem of waiting. If there is only one thread, when a condition is not met, the thread will remain waiting, and the CPU will not do anything at this time. However, it is not a waste that you invite a "cool man" at a high price and cannot make full use of him. At this time, multithreading occurs...

Next, the multi-thread and other aspects of the discussion lasted for a period of time, a small self-feeling performance is not good. According to her, the interviewer made her feel very cordial and she was not nervous at all. Next, the interviewer told Mr. A about the company's current products. Two people made pleasant laughter from time to time in a small meeting room of dozens of square meters...

The interview lasted from half past twelve to. When leaving, Mr. A knew from the administrative staff that the person interviewing her was the boss of the company.

 

At two o'clock P.M., Mr. A went to another company, a mature software company located in Jinqiao officepark. From the Pudong Software Park, Mr. A was afraid of time delay, and had no lunch. He rode his bicycle and came to the Golden Bridge officepark. Here, there were brilliant tall buildings and congested roads, make small a feel quite depressed. However, she got nervous again in a calm mood...

When I arrived at the company, I came to the front desk and said with a smile, "I am here for an interview. The lady sitting in the room handed me a form with a blank face and said, fill in the meeting room next to it. Mr. A looked around and found that there were still many people in the company, and the entire floor was in the office area. Everyone is busy. She filled out the form in the meeting room. The form is simple, that is, filling in the name, gender, and so on. However, there is a work experience, and it also shows the salary of the previous company... mr. A does not know what the purpose is. Is the current salary determined based on the salary given by the previous company? Let me write more. Wait! I also want to write "certifiers" and "Grandma's, cheap" in the back. A, who has never been cursing, scolded me in his heart at this time...

After a while, no one has come. Seeing people pouring water here, Mr. A suddenly found that her mouth was cracked and sore. She wanted to pour a cup of water, but she was afraid of abrupt changes. How she hoped that the staff here could give her a glass of water... she came here when she was not sure. This person is not big. He is five or six years older than her. He is bald and can see that he is honed.

 

With the resume of John, the second interview started...

 

Interviewer: Let me tell you something about our company, right ?..........

A: Oh, oh !!!!!!!!!!!!!!

Interviewer: Are you familiar with HTTP?

A: I used it. I used it before Android development.

Interviewer: Well, I think there is a resume on your resume. The download function of the XX Project you previously created must use the HTTP protocol?

A: Well, yes.

Interviewer: How did you use it?

Small A: downloads a file on the server to a local file through a URL and stores it.

Interviewer: Are you using the HTTP header?

A: It is used. When a breakpoint is downloaded, it needs to be downloaded from a certain position. This must be set in the HTTP header.

Interviewer: So what is set?

Small A: I used the head header for resumable download, but I remember it a few months ago .,

Interviewer: Do you know what 500 is?

A: Ah? (John didn't understand it. He was too dull.) Oh, you're talking about HTTP code 500, right?

Interviewer: Well, do you know what 500 is?

Small A:... (although I have met 500 during development, I did not remember it). I don't know, I have met.

Interviewer: 500 is a common server error. So you know what OK is?

Small A: 200

Interviewer: Well, do you know what 206 is?

A: I don't know... (frustrated ...)

Interviewer: actually, when you mentioned the breakpoint download, Set range in the head to tell the server what range of data to download. At this time, the server returned 200 instead of 206.

A: Oh (I think it's okay ...)

Interviewer: Do you know multithreading? Do you know the essence of multithreading?

A: I know. (I thought that I had discussed multithreading with the boss for half a day in the morning. Now you can ask, should it be okay? I wanted to answer the question according to my own understanding, but I thought that the morning was a technical expert's opinion ). The essence of Multithreading is waiting. (Questions with confidence ...)

Interviewer: Why?

Small A: (repeat the words of the boss in the morning )... for example, in the development of the android client, the main thread, we know that it is not allowed to carry out long tasks, otherwise there will be a waiting phenomenon, at this time, you need to open another thread to execute this long-time task.

Interviewer: You are right, but your answer seems a bit... the essence of Multithreading is "concurrency", or "Asynchronous"...

Mr. A: Yes, yes. (who told me that the essence of Multithreading is actually a magic horse ????)

Interviewer: I have also graduated and experienced this. I sincerely want to tell you that you will never be able to pass this course. I will give it to personnel. You can also leave now to avoid delay.

A: Okay. Let me go now.


On the way back, John almost cried. She felt aggrieved. Why is the HTTP status so important? Why is the content in the HTTP head so important? What she thinks can be tested, the interviewer does not ask.

However, Mr. A endured the tears and rode his bicycle. He returned to his place with a tired body and a hungry stomach.

Last night, as a member of us who came to Shanghai together, everyone gathered. At the dinner table, Mr. A looked a little heavy and We comforted her.

Mr. B said: the first one is very likely. You don't need to care too much about the last one. He can't always think that Steve Jobs is famous. Should everyone know who Steve Jobs is?

Mr. C said: I know the head about HTTP. I guess it is because a foreigner must use the head and cannot use the "Header. (Everybody laughs ...)

Mr. D, the boss, said: After listening to Mr. A's experience, I was deeply touched. I have also worked as an interviewer, but I have always interviewed them from my own perspective, I think I know what I understand. They also need to know and understand. However, they seldom focus on what they are really good at and what truly reflects their capabilities. Next year, I have many job-hopping jobs. I have to rethink how to interview those candidates!

Am, scatter...

At, A called and I was asleep. She was excited to tell me that the first offer had come down and all her requirements had been met, and there were thousands of shares. I'm also excited. Now she can have a good year.

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.