2017 Autumn recruit US Java programmer Development, see how I get an offer

Source: Internet
Author: User

Hot noodles, yesterday, the United States Regiment, although the face of the HR face, but the hope is not big, hope to get the offer. The three-faceted technology is as follows:

Side:

In the middle omit a few questions, because I do not remember, the following is basically the basic is I do not how to answer the good ...

1. Understand SOA, microservices?

2. How is the distributed system load balanced? How do I determine which server the resource is accessed on?

One. Polling. Two. Random. Three. Minimum response time. Four. Minimum number of concurrent. Five. Hash.

3. Design a distributed load balancing buffer system, how to quickly locate the server (using key segmentation, consistent hash)

4. How to ensure strong consistency between the buffer and the database (using locking)

What's wrong with 5.HashMap high concurrency (scaling problem)

6. Say that after entering a URL in the browser, until the browser displays the page in the process of what happened (I mainly say DNS, then he has to ask the details of the DNS, then the ARP route, then the server processing, return, browser rendering, get the dependency resources in the HTML)

7. The reversal of the sentence in the string (e.g. ABC def, output DEF ABC) (very simple, you can reverse the entire string, then reverse the word, or first cut the sentence into words, and then reverse);

8. Add next pointer to all nodes of any binary tree (this has the original problem, you can also refer to print binary tree by layer).

9. Have you used a reverse proxy?

Two sides:

1. What are the ways to share memory between processes? (8 types)

2.linux How to view the network port status (netstat), how to view memory usage (top);

3.ConcurrentHashMap How to expand?

4. Are you aware of Java exceptions?

5. What happens if the runtime exception is not handled? What should I do with run-time exceptions?

6. Write code: give you 50 million int, find out the first 1000 largest number, there is 2G of memory. (I just started to think that 50 million int a lot, but also to the G and byte conversion forgotten, then the interviewer guidance only remembered.) My method is to maintain a small Gan of 1000, and then iterate through the array, the overall time complexity is O (nlg1000))

7. Give you n non-repeating integers, randomly find m non-repeating integers, requiring both time and space complexity are O (m). (The method is very simple, that is, each time the number taken out to the back, only in the previous array random access can be, the time complexity is O (m), the space complexity is O (1), but I did not think of the election to put the back to go ... )。

8. For SQL slow query optimization? (mainly from the query statement and the database table design two aspects to consider, query statement aspect can increase the index, increases the query filter restriction condition; The database table design can split the table, the design is finer granularity. But later found that the interviewer wanted to query a large number of data slow query optimization of the problem ... )

9. What containers have been used? (tomcat) compared to the difference between Tomcat and other servers? Like Nginx?

10. Have you ever used a dynamic agent? It's going to be used a lot later.

Three sides:

1. Introduce yourself and talk about the flow of data in your project (Picture block diagram)

2. What books have you read?

3. Say a deeper understanding of the most impressive chapters in the JVM (I said JVM memory model, garbage collection and class loading);

Add: Also asked what is stored in the heap and stack? Where does the static modification traverse exist? (Method area)

4. Say "effective Java" in your deepest impression of the three and your understanding

5. Which one do you think is the most familiar (I said Java basic data structure)

6. What do you say about HashMap's internal realization;

is 7.HashMap thread-safe? (No, Concurrenthashmap is)

8. How does the interior of the Concurrenthashmap be implemented? What is a data structure for each segment? (HashTable)

9. What are the techniques used in your project? (Spring)

10. Tell me what you've used it for? (The Spring IOC uses the most)

What are the advantages of 11.Spring? The principle of Spring AOP? How does spring implement decoupling?

12. Do you understand the linked list? (I say list) Yes, (learn ArrayList and LinkedList), so what do you say about their differences?

13. Will you do the exchange of two nodes in the list? (is the list reversed?) Yes, you write code to implement it.

14. Write another, give you a list and an integer k (k is greater than or equal to 0, less than or equal to the list length, the list length is unknown), by K step reversal list (such as 1->2->3->4->5->6->7, when k=3 the result is 3-> 2->1->6->5->4->7)

15. Say MyBatis how does the database work after the XML is configured?

Summarize

1. More than three years Java development experience or more than five years Internet development background

    1. Familiar with SPRINGMVC framework

    2. Master object-oriented design development, familiar with common design patterns

    3. Proficient in using MySQL for application development, familiar with database principles and common performance optimization techniques

    4. Familiar with distributed, cache, message search and other mechanisms, experience in distributed system development, cluster architecture design and user preference

    5. Have a sense of responsibility, have ideas, love technology, like to delve

    6. Strong logical thinking ability, good at analysis, induction, rapid positioning and problem solving

A lot of small problems are not clear, this is I came back yesterday afternoon recorded, I feel I did my best.

Finally very fortunate to get an offer, October only began to find a job I also calculate a successful end of autumn strokes, I wish you are still looking for a job students can find their own satisfactory job. Come on, good luck.

I deliberately tidied up, there are a lot of problems not by a few words can be clear, so simply find a friend recorded some video, used to answer these questions. Many questions in fact the answer is very simple, but behind the thinking and logic is not simple, to know it but also to know why. If you want to learn Java engineering, high performance and distributed, high performance, in layman. Performance tuning, Spring,mybatis,netty source analysis of friends can add my Java Advanced Group: 675047716, the group has Ali Daniel Live interpretation technology, as well as Java large-scale Internet technology video free to share to everyone.

If you want to learn Java engineering, high performance and distributed, in Layman's. Performance tuning, Spring,mybatis,netty source analysis of friends can add my Java Advanced Group,675047716, group of Ali Daniel Live to explain technology, as well as Java large-scale Internet technology video free to share to everyone.

2017 Autumn recruit US Java programmer Development, see how I get an offer

Related Article

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.