For one Java In terms of objects , There are two main types of storage , One is the memory heap (Heap), The memory heap is out of order , It is mainly used to store the created Java object ; One is the memory stack (Stack), Mainly used for storage Java quote , And then use it in the management process Java Reference point Java object .

About Reference Refer to the “ Those things "

With the golden merry floating on the sea , Everything looks so calm , But everyone seems to be busy with the things in their hands .... All of a sudden, Webb asked Saab a question : We all know JVM Tuning is doing it right now Java Development has to have an important part to improve itself , Then you know pile and stack , What is the storage mechanism ? For this problem , Just like the dream of exploring the end of the world , That's what Saab said to Webb : For one Java In terms of objects , There are two main types of storage , One is the memory heap (Heap), The memory heap is out of order , It is mainly used to store the created Java object ; One is the memory stack (Stack), Mainly used for storage Java quote , And then use it in the management process Java Reference point Java object . After listening to Saab's answer , Webb was leaning against the deck , Lit a scarlet cigarette , Take a puff , Then he said to Saab : Can you explain the citation mechanism in detail ? Saab thought for a moment , So here's the story .......

GC[Garbage Collectors] The basic principle of

Based on the above ,Java Memory management is actually object management , This includes the allocation and release of objects . among GC Is responsible for the existence of the object “ Unreachable ” The object is recycled when it is used .

Copyright notice : This article is an original blog article , Follow the relevant copyright agreement , If you reprint or share, please attach the original source link and link source .

Java Analysis of programming development Java More articles on Citation mechanism

  1. Java Analysis of programming technology Java Container technology

    Java Containers A collection is a container for storing data , yes Java One of the most frequently used object types in development . Maybe mention Collection, It's the first time you realize that List and Set as well as Map And so on . Because it's almost in our daily development ...

  2. JAVA Programming “ Performance theory ”(java What programming needs to do 26 thing )

    Reproduced in  http://www.csdn.net/article/2012-06-01/2806249 Recently, the machine memory is full again , In addition to new machine memory , It should be good review Take a look at our code , A lot of code has been written ...

  3. 《Java Web Developing actual combat 》——Java Engineers must have dry goods teaching materials

    Annual graduation season , Here's the resume .offer Flying all over the sky , A season of disappointment and hope . stay IT industry , When college graduates are looking for jobs , The first threshold is the test of skills and experience , But schools tend to pay more attention to students' theoretical knowledge , Neglecting the cultivation of students' practical ability , thus ...

  4. Google Of Java Programming style guide (Java Coding standards )

    This document is Google Java Complete definition of programming style specification . If and only if one Java The source file conforms to the rules in this document , We think it fits Google Of Java Programming style . Like any other programming style guide , It's not just about ...

  5. Java Programming logic (95) - Java 8 The date and time of API

    ​ This series of articles has been supplemented and perfected , It has been revised into a book <Java Programming logic >, Published by Huazhang branch of China Machine Press , On 2018 year 1 It's on sale in June , The readers have a lot of praise ! It's available in major online stores and bookstores , Welcome to buy , Jingdong self operated link :http: ...

  6. (Java Programming idea )Thinking in Java

    1.  Why do you want to study <Thinking in Java>? Recently, I finally made up my mind to write a book <Thinking in Java> The Fourth Edition , Although I've heard the name of this book for a long time before that , But never ...

  7. Java Programming thinking learning ( 13、 ... and ) java I/O

    Java Streams are used to handle the input and output operations of a program , Flow is an abstract concept , Encapsulates the underlying details of program data exchange between input and output devices .JavaIO Stream is divided into byte stream and character stream , Byte streams are mainly used for processing such as images , Audio, video and other binary format data ...

  8. Programming development (C/C++&amp;Java&amp;Python&amp;JavaScript&amp;Go&amp;PHP&amp;Ruby&amp;Perl&amp;R&amp;Erlang)

    Use Docker Rapid deployment of mainstream programming language development . Compiler environment and its common framework , Include C.C++.Java.Python.JavaScript.Go.PHP.Ruby.Perl.R.Erlang etc. . In the future, programming language will be used ...

  9. Java Chinese programming development , Give Way Java Writing changes is complicated

    forehead ?what? stay B I saw a picture by accident , Inadvertently, I have made my own curiosity , Actually, I've known for a long time Java Support Unicode Coding means that Chinese naming rules can be used , But we can wrap it up , It's not bad to play with Chinese coding , But by ...

  10. Java Analysis of programming technology JVM Memory

    JVM JVM->Java Virtual Machine:Java virtual machine , Is a specification for computing equipment , It's an imaginary computer , It is realized by simulating various computer functions on a real computer . Basic cognition : ...

Random recommendation

  1. javascript -- Learning closure , Free variable

    Closure Here is the explanation of Baidu Encyclopedia : A closure is something that can contain freedom ( Not bound to a specific object ) Variable code block : These variables are not defined within this code block or in any global context , It's defined in the context of the code block ( local variable ). In other words, a code block ...

  2. hdu 4407 Sum

    http://acm.hdu.edu.cn/showproblem.php?pid=4407 The question : Given the initial n Number 1..n, Two operations ,①1 x y p   Question no x The number to the first y In the number and p The sum of the reciprocal numbers ; ② ...

  3. DotNET Summary of knowledge five ( Note Integration )

    1. entrust : Usually it means The multicast delegate Generally speaking , A delegate is a container for method pointers , Is a safe function pointer , For programmers to safely call . The essence of delegation is a class , Inherited from MulticastDelegate——>Delega ...

  4. 《TCP/IP Specific explanation 》 Reading notes (18 Chapter )-TCP Connection establishment and termination

    TCP It's a connection oriented protocol . No matter which direction or which side sends data . You have to make a connection between the two sides . The establishment of such a connection between the two ends and the connectionless protocol UDP Different .UDP Send a datagram to the other end , Handshake without notice . 1. build ...

  5. metroui

    <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content ...

  6. vbox Install in mac System

    Reference resources : https://www.cnblogs.com/liming2017/p/7566953.html

  7. do {...} while (0) A summary of the uses of ( Welcome to add )

    In some Linux Kernel and other open source code , We often see code like this : do{ ... }while(0) This code fragment is not a loop , It seems to use do…while It doesn't make any sense , So why use it ? ...

  8. Use PostgreSQL A problem encountered [column does not exist] Field does not exist :

    Table structure : In the table structure above me , There's one called "fromdeviceId" Field of , However, when querying, it prompts that the field cannot be found : Watch the error message carefully , Find out , My field clearly has a capital letter (fromd ...

  9. SQL Server Backup the end log in case of disaster (Tail of log) Two methods of

    from :http://www.cnblogs.com/CareySon/archive/2012/02/23/2365006.html SQL Server Backup the end log in case of disaster (Tail of log) ...

  10. 20155214 2016-2017-2 《Java Programming 》 The first 4 Weekly learning summary

    20155214 2016-2017-2 <Java Programming > The first 4 Weekly learning summary Summary of the learning content of the textbook Chapter6 A parent class is to promote the same code of multiple classes (Pull Up) The subclass inherits, and the parent inherits to pr ...