java basics learning

One: PriorityQueue: Priority queue. underlying data structure? Is sorting faster for static arrays, or faster for dynamic ones?

 

Two: 
String aa = "abc"; String aa = new String("abc"); What is the difference? Where are the literals placed, in the method area? The latest version has been changed, and it seems to be in the heap.

 

Three: The new object must be placed on the heap? Is there a way to put it on the stack?

 

 

Four: JVM garbage collection? How many strategies? cocurrent GC?

 

Five:  memory leak ( out of memory ) VS memory overflow ( stack overflow )? What would cause a memory leak? Adjust dummy parameters? Analyze DUMP files.

 

Six: How is IOC implemented? Factory pattern.

 

Seven: How to initialize beans according to XML when Spring is initialized? In what form to store the bean. Initialize the generated MAP, what is the key of the map? what is value?

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325289255&siteId=291194637