编程知识 cdmana.com

A very suitable collection of Java advanced interview questions, java development must know the skills

 A very suitable collection Java Advanced surface test questions ,Java Develop the skills you must know _ The backend development

Memory model

  • The memory model defines why there should be memory models and why they should be reordered , When to arrange reordering and how to restrict reordering rules happens-before
  • What is sequential consistency
  • CAS Implementation principle , Is it blocking or non blocking ? When to use , Problems to consider when using
  • The processor and Java How to ensure atomic operation
  • Can you guarantee visibility by ensuring atomicity ?
  • final Memory semantics ? When to use , Problems to consider when using
  • volatile Memory semantics , When to use , What should be considered when using
  • synchronized Memory semantics , When to use , Compare the advantages and disadvantages with the lock
  • synchronized Lock upgrade process involved in
  • Memory semantics of locks , Illustrate with examples , The processing flow when locking fails
  • Compare CAS 、volatile 、synchronized、Lock difference
  • The underlying implementation mechanism of atomic operation class ? How does autoincrement ensure atomicity ?

Threads

  • What are the status of threads
  • How to be in Java Implementation thread ?
  • How to be in Java Start a thread in ?
  • What is the meaning of designing thread interrupts
  • Java in interrupted and isInterrupted Differences in methods ?
  • How to stop a thread ?
  • Threads join What does the method do ?
  • There are three threads T1,T2,T3, How to ensure that they are executed in order ?
  • Thread waiting notification mechanism implementation mechanism ?
  • Why wait conditions should be checked in the loop ?
  • Why? wait and notify Method is called in the synchronization block ?
  • Why? wait, notify and notifyAll These methods are not available thread In class ?
  • ThreadLocal What is it? , How to achieve
  • What is a thread pool , Submit a task to go in , Processing flow ?
  • Executor The framework is introduced
  • JUC What configured thread pools are provided in the package , What is differentiation
  • What is? FutureTask?

lock

  • Lock Which implementation classes are provided by the interface

  • AQS What is it? , What methods are provided

  • AQS The operation flow of exclusive lock and shared lock in... Is generally described

  • What are the benefits of re entering the lock , When to consider using

  • What are the benefits of read-write locks , When to consider using ? What type of lock is a read lock , Where's the write lock ?

  • Tell me about the lock degradation process in the read-write lock , When can we consider using this mechanism

  • park How is the method implemented

  • Lock waiting notification mechanism Condition How did it happen , With the thread waiting notification mechanism, why design Condition?

  • How did the deadlock happen , How to avoid

  • say something Java Which locks are in

  • sleep、wait、park、Condition Can make threads wait , What's the difference? ?

  • So-called sleep It won't release the lock ,wait Can release the lock , How to handle the context data when the lock is released and re acquired ?

  • Releasing the lock will make CPU Do you want to switch contexts ?

  • Containers and tools

  • What's the difference between blocking and non blocking , How can they achieve

  • queue (Queue) What operations are provided

  • What methods do blocking queues provide to get elements , What's the difference? ?

  • What are the implementations of blocking queues ? Why divide into bounded and unbounded ?

  • CountDownLatch How to achieve , When to consider using ?

  • CyclicBarrier How to achieve , When to consider using ?

  • Semaphore How to achieve , When to consider using ?

  • How to share data between two threads ?

  • Exchanger How to achieve , When to consider using ?

  • ConcurrentHashMap Realization ?

  • fork/join What is the frame ?

     A very suitable collection Java Advanced surface test questions ,Java Develop the skills you must know _Java_02

JVM Virtual machine interview questions

  • memory management
  • Why JVM?
  • A brief description JMM and JVM Two concepts
  • JVM memory management
  • Forever 、 Meta space 、 Relationship of method area
  • Class loading process
  • What are the benefits of parental delegation
  • How to cover JDK Components provided , Like coverage ArrayList The implementation of the
  • new What happens to the process of an object ( Class loading 、 Variable initialization 、 Memory allocation )
  • The death process of the object
  • JVM What might be thrown OOM
  • What are the garbage collection algorithms ? Comparison of advantages and disadvantages
  • What are the familiar garbage collectors , Briefly describe each application scenario
  • CMS and G1 The garbage collection steps are ?
  • G1 be relative to CMS Advantages and disadvantages
  • Performance monitoring and tuning
  • How to monitor GC
  • common OutOfMemoryError What are they?
  • common JDK What are the diagnostic commands , Application scenarios ?
  • CPU Higher , How to locate the problem
  • High memory usage , How to locate large objects
  • When memory leaks , How to track memory changes in real time
  • When memory leaks , How to locate the problem code
  • How to tune performance bottlenecks for large projects ?
  • Virtual machine subsystem
  • How are bytecodes stored in JVM In the process of circulation ( Stack frame )
  • The underlying implementation of method calls
  • Implementation of method rewriting and overloading
  • invokedynamic Instructions implement
  • How to modify bytecode
  • JIT How parameter configuration affects program operation ?
  • What performance optimization strategies do virtual machines have

Finally, I want to remind you of :HR Interview with other companies in China HR There's not much difference between interviews , Including career planning 、 Professional experience 、 Leaving reason 、 And related background investigation and other basic aspects .

In the and HR There are still different opinions in the communication , The key is whether your career planning and self positioning are clear . It is very important in this round of communication .

Finally, free Java Structure learning materials , Learning techniques include :Spring,Dubbo,MyBatis, RPC, Source code analysis , High concurrency 、 High performance 、 Distributed , performance optimization , Microservices Advanced architecture development and so on .

summary

Before the interview “ try ” It's important , So be sure to be ready before the interview , Otherwise, it will delay the time of the interviewer and himself .

I did a lot of interview questions myself , So in the interview process to be able to know , Basically, it will be clear what knowledge points will be asked during the interview , What are the high frequency questions , So brushing questions is a very important point in the pre interview preparation process .

Interview questions and analysis summary

 A very suitable collection Java Advanced surface test questions ,Java Develop the skills you must know _ The programmer _03

Big factory interview scene

 A very suitable collection Java Advanced surface test questions ,Java Develop the skills you must know _Java_04

Summary of knowledge points

 A very suitable collection Java Advanced surface test questions ,Java Develop the skills you must know _ The backend development _05

This article has been  CODING Open source project :【 A big factory Java Analysis of interview questions + Core summary learning notes + The latest explanation video + Actual project source code 】 Included

版权声明
本文为[Programmer Huaxi]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/10/20211002003214589X.html

Scroll to Top