I’m sure you’ve experienced some of these:

I’ve been working for two or three years, and I’ve been working overtime to finish every project, but the salary increase is not good enough.

I heard that jin SAN, an old colleague who resigned after the New Year, just won the high salary offer and his annual salary went straight to 500,000 yuan.

Because the current company can not access to new technology, the market competitiveness of their own anxiety, the future career path?

You finally understand that there are few job opportunities and it’s hard to get a big salary increase. The annual salary of a Java engineer is determined by skills, so it’s time to improve your skills and plan your future career path in advance.

As a Java engineer, you are already very busy at work. How can you move up the ladder and quickly raise your salary to 450,000 or even 1 million?

Share some of the experience of those who have come, for your reference.

To obtain the data and related brain maps: pay attention to the public account at the end of the article

1. Data structure and algorithm basis

  1. · Describe several common sorting algorithms and their complexity.
  2. · Write a bubble sort algorithm in Java
  3. · Describe the chain storage structure.
  4. · How to traverse a binary tree?
  5. · Invert a LinkedList.
  6. · Write a recursive traversal of all files under the directory in Java.

Second, Java foundation

  1. · What is the difference between interface and abstract class?
  2. · What are the types of exceptions in Java? How to use them separately?
  3. · What are the commonly used collection classes? For example, how do I sort a List?
  4. · What are the internal implementations of ArrayList and LinkedList? What are their differences and strengths and weaknesses?
  5. · What about memory overflow? Can you give me an example?
  6. · what is the difference between equals and equals?
  7. · What does the hashCode method do?
  8. · What is NIO? What scenarios are applicable?
  9. · Implementation principle of HashMap, how to ensure thread safety of HashMap?
  10. · JVM memory structure, why GC?
  11. · NIO model, select/epoll difference, principle of multiplexing
  12. · How many bytes is a character in Java? Extension asks how many bytes are int, long, double
  13. · What are the ways to create an instance of a class?
  14. · Final /finally/ Finalize?
  15. · The difference between Session and Cookie?
  16. String/StringBuffer/StringBuilder difference, expanding to ask their implementation?
  17. · Life cycle of servlets?
  18. · How to allocate a contiguous 1GB of memory using Java? What should I pay attention to?
  19. · Java has its own memory reclamation mechanism, but why is there a memory leak problem?
  20. · What is Java serialization and how is it implemented? (Write an example)?
  21. · String s = new String(” ABC “); How many String objects are created?

Third, the JVM

  1. · Basic structure of JVM heap.
  2. · What are the garbage algorithms of JVM? The basic process of CMS garbage collection?
  3. · What are the common startup parameters of the JVM that can be adjusted?
  4. · How do I check the MEMORY usage of the JVM?
  5. · Will the Java program run out of memory and leak the memory? Just a few examples.
  6. · What are your common JVM configuration and tuning parameters? What do they do?
  7. · Memory structure of JVM?
  8. · Common GC policies, when will YGC be triggered and when will FGC be triggered?

Four, multithreading/concurrency

  1. · How to create a thread? How to keep thread safe?
  2. · How to implement a thread-safe data structure
  3. · How to avoid deadlocks
  4. · What does the Volatile keyword do?
  5. · What should be noted when using HashMap in a multi-threaded environment? Why is that?
  6. · Is run or start used to start a thread in a Java program?
  7. · What is a daemon thread? What’s the use?
  8. · What is a deadlock? How to avoid
  9. · What is the difference between thread and process?
  10. · How is Threadlocal implemented in Java?
  11. · How does ConcurrentHashMap work?
  12. · The difference between sleep and wait
  13. · Differences between Notify and notifyAll
  14. · Use of the volatile keyword
  15. · Function and implementation of ThreadLocal
  16. · How do two threads execute sequentially
  17. · What does context switch mean
  18. · Can I kill a thread at runtime?
  19. · What are conditional locks, read-write locks, spin locks, reentrant locks?
  20. · How does ThreadPoolExecutor work?

5. Linux use and troubleshooting

  1. · Create a file using two commands?
  2. · The difference between hard links and soft links?
  3. · What are the common Linux commands?
  4. · How to look at the resource consumption of a Java thread?
  5. · What are the possibilities of excessive Load?
  6. · What is the /etc/hosts file used for?
  7. · How can I quickly replace all “ABC” with “xyz” in a text?
  8. · How to search for error logs in log files?
  9. · If disk space is insufficient, how to quickly find the file that occupies the most space?
  10. · Java server troubleshooting (OOM, high CPU, high Load, class conflict)
  11. · Java common troubleshooting tools and usage (TOP, IOstat, VMSTAT, SAR, tcpdump, JVisualVM, JMap, JConsole)
  12. · How to analyze Thread dump files (Runnable, lock, code stack, OS Thread ID correlation)
  13. · How to view thread information of Java application?

Six, frame use

  1. · Describe the three states of Hibernate?
  2. · Lifecycle of beans in Spring.
  3. · SpringMVC or Struts processes the request.
  4. · What problems does Spring AOP solve? How do you do that?
  5. · What about the propagation properties of Spring transactions? What does it affect?
  6. · What is the difference between BeanFactory and FactoryBean in Spring?
  7. · What is the principle of IOC in the Spring framework?
  8. · What are the methods of Spring dependency injection
  9. · Struts workflow
  10. · How to implement a facet with Spring?
  11. · How does Spring implement database transactions?
  12. · Hibernate’s use of primary and secondary caches, lazy-load understanding;
  13. · How does Mybatis implement batch submission?

7. Database related

  1. · Features of MySQL InnoDB and Mysaim?
  2. · The difference between optimistic lock and pessimistic lock?
  3. · What is the database isolation level? What does it do?
  4. · Basic principle of MySQL master/slave synchronization
  5. · Select * from table t where size > 10 group by size order by size
  6. · How to optimize database performance (index, database table, batch operation, paging algorithm, SSD upgrade, service optimization, master-slave deployment)
  7. · When SQL does not use indexes (not including, not equal to, functions)
  8. · What fields are generally indexed on (the fields with the most filtered data)
  9. · How do I find all rows in a table that do not contain “XYZ” in the name field?
  10. · MySQL, B+ index implementation, row lock implementation, SQL optimization
  11. · Redis, RDB and AOF, how to make high availability, clustering
  12. · How to solve the problem of high concurrent inventory reduction
  13. · Index implementation mechanism in mysql storage engine;
  14. · Several granularity of database transactions;
  15. · Row lock, table lock; Optimistic lock, pessimistic lock

Network protocol and network programming

  1. · TCP connection establishment process.
  2. · Process of TCP disconnection.
  3. · What is the logic behind the 302 redirect in the browser?
  4. · Interaction flow of HTTP protocol. The difference between HTTP and HTTPS, the interaction flow of SSL?
  5. · What is the relationship between Rest and Http? Rest is said to be lightweight. What do you think of the Rest style?
  6. · What is the use of TCP’s sliding window protocol? Talk about the principles.
  7. · What are the methods of HTTP protocol?
  8. · What is the difference between switches and routers?
  9. · Basic process of Socket interaction?
  10. · Protocol (packet structure, breakpoint continuation, multi-threaded download, what is long connection)
  11. · TCP protocol (connection building process, slow start, sliding window, seven-layer model)
  12. · WebService protocol (WSDL/SOAP format, different from REST)
  13. · NIO benefits, Netty threading model, what is zero copy

9. Redis and other cache systems/middleware /NoSQL/ consistent Hash, etc

  1. · List a common Redis client concurrency model.
  2. · How to implement fuzzy query in HBase?
  3. · List a common message-oriented middleware, and how to achieve the message order preservation?
  4. · How to implement a Hashtable? How does your design take into account Hash conflicts? How to optimize?
  5. · Distributed cache, consistent hash
  6. · LRU algorithm, slab allocation, how to reduce memory fragmentation
  7. · How to solve the hot spot problem of cache single machine
  8. · What is a Bloom filter and how does it work? What does False positive mean?
  9. · Differences between Memcache and Redis
  10. · What functions does ZooKeeper have and how does the election algorithm work
  11. · Map/Reduce process. How to use Map/Reduce to realize joint statistics of two data sources

Design patterns and refactoring

  1. · Can you give examples of some common design patterns
  2. · What principles do you follow when designing a factory bag?
  3. · Can you name an open source project/library that uses the Visitor/Decorator pattern?
  4. · What are the most common design patterns you use when coding? In what context?
  5. · How to implement a singleton?
  6. · Proxy mode (dynamic proxy)
  7. · Singleton mode (slacker mode, villain mode, how to solve concurrency initialization, use of volatile and lock)
  8. · What design patterns have impressed you in JDK source code?

Eleven: micro services

1. What are microservices?

2. How do microservices communicate independently

3. What are the differences between springCloud and Dubbo?

4. Springboot and SpringCloud, please talk about your understanding of them?

5. What is microservice circuit breaker? What is service degradation?

6. What are the advantages and disadvantages of microservices? Tell me about a pit in your development

7. What do you know about the microservices stack? Please list one or two

8. Both Eureka and ZooKeeper provide the functions of service registration and discovery. What is the difference between them?

I’m sure you’ve experienced some of these:

I’ve been working for two or three years, and I’ve been working overtime to finish every project, but the salary increase is not good enough.

I heard that the old colleague who quit after the New Year just won the high salary offer, and the annual salary went straight to 500,000.

Because the current company can not access to new technology, the market competitiveness of their own anxiety, the future career path?

In this cold winter, you finally understand that there are few job opportunities and it is difficult to get a large increase in salary. The annual salary of Java engineers is determined by skills. It is time to improve skills and plan future career paths in advance.

As a Java engineer, you are already very busy with your work. How to advance and grow quickly?

Share some of the experience of those who have come, for your reference.

Once you become a Java engineer, you are destined for lifelong learning.

Tony has experienced this in his 13-year career as a Java engineer, and the motivation for me to keep learning mainly comes from the following three aspects:

1, constantly increase their value, have more options

If you compare technology to a tree, for every language you learn, you light a fruit on the tree. The more you get, the more fruit the tree has, and the more valuable it is. Once you’ve accumulated enough fruit on your skill tree, you’ll be able to move up the technical ladder and up the career ladder.

The Internet has no comfort zone, standing still is regressive

Computer technology updates rapidly and new technologies emerge endlessly. If you want to be a good Java engineer, you must be ready to learn at any time and persevere, so as to keep up with the rapid development of the Internet.

Learning is the best way to face the competition and overcome the midlife crisis

Java engineer is a well-paid profession, in recent years, with the rapid development of Internet, but also became a hot hot jobs, so that more and more people join in this profession, hammering too easily, want to or left behind, only study hard, become a high pay for the Internet company in the high-end Java engineer, can you not fear the cold winter.

At present, the Cold winter of the Internet has made many Internet people awake. Many large enterprises have downsized and their recruitment demand has contracted, mainly targeting at basic posts and those who boil frogs to death in warm water. There is still a shortage of middle and high-end Java engineers in the market.

Mainstream technology selection for Internet companies

Advanced advanced Java, architect must learn 6 major skills, including: data structure and algorithm, Java advanced features, source code analysis, database, Java framework and necessary tools, system architecture design, hope to really help to want to go from programmers to advanced Java, architect road friends.

1. Distributed architecture

As the volume and importance of services increase, the single architecture mode cannot correspond to large application scenarios, and the system cannot be unusable due to single point of failure. Therefore, the service system must be split vertically or horizontally to form a distributed architecture to eliminate single point of failure and improve the availability of the entire system.

Distributed Session, distributed cache, database, consistency, load balancing, message queue (RabbitMQ, ZeroMQ, Kafka), and so on

image.png

2. Micro services

Depending on the circumstances, the benefits of choosing a microservices architecture will far outweigh the costs.

Enterprises with small scale can consider introducing appropriate micro-service architecture, transforming existing systems or building new micro-service applications, and gradually accumulating experience in micro-service architecture. Instead of implementing micro-service architecture completely, they should consider cost, efficiency and practicality comprehensively.

Tony has a series on microservices in his latest architecture series BAT Architecture Technology Collection, with the address at the end of the article.

Reading these interview questions, 45K monthly salary is no problem?

3. JVM performance optimization

image.png

4. Concurrent programming

Only by deeply understanding the operation principle of the bottom layer and strengthening logical thinking can we write efficient and safe multithreaded concurrent programs.

Including: collection framework (source), tool classes, framework Spring, SpringMVC, Mybatis, Shiro, Netty, server (Tomcat, Nginx), network programming, serialization, JVM, etc.

image.png

image.png

5. Design patterns

Design pattern is the foundation of reusable object-oriented software, learning design model test is the only way for every Java engineer to advance, flexible use of design pattern, can make the code become concise, easy to understand, reuse higher.

Common design patterns are: factory pattern, agent pattern and so on.

Reading these interview questions, 45K monthly salary is no problem?

6. Develop relevant framework tools

The following frameworks and tools are often used by Java programmers. If you want to do a good job, you must first sharpen your tools. Mastering and applying these tools can help us to carry out work more efficiently and with quality, such as debug, efficient de-duplication, code review and so on.

Reading these interview questions, 45K monthly salary is no problem?

7. Building critical infrastructure

Reading these interview questions, 45K monthly salary is no problem?

Workplace or life, each stage has certain obstacles and bottlenecks, which we all have to experience.

If you can identify who you are and where you are, think about it in a targeted way, keep doing the right thing, and put in more effort than others, you will be better than others and have more opportunities. This is often called the Matthew Effect: the harder you work, the luckier you will be.

To obtain the data in this paper and related brain maps: follow the public account below to obtain