Reread JAVA programming ideas

Back then, I read Java programming thoughts like a pig. I just knew that it was a good book, but the specific details are really incomprehensible. Many of them are used in work. Then I read "think in java" and " "core java", after having so much actual java programming experience, I read this book and found that the feeling is different. Not only can I understand the things in the book, but I can also ask questions and search online to solve them.

Chapter Two, Everything is an Object

Six places to store data:
1. Register; compiler allocation; 2. stack; object reference in the stack, basic type value 3. heap; object storage 4. static storage: static object 5. constant storage: Constant value; 6, non-RAM storage: stream object, persistent object (file)
basic type 9 (including void) The variables inside the
BigInteger
loop cannot be the same as the variables outside the loop.
The life cycle of the basic type? The basic type is on the stack and is assigned when the variable is allocated. The reference itself is also on the stack. When the object is generated, the address of the object in the heap is stored. The only reference of the object disappears, how to pass and copy the reference? How is the garbage collection period recovered?
The basic type members in the class do not need to be initialized.
The combination of method name and parameter table uniquely identifies a method.
The static method is called by the class and does not depend on the object.
JAVA parameters are passed by reference, how to pass by reference? The address in the passed stack. What means? References are equivalent to pointers in java. Variables are referenced in the stack, and references point to specific objects in the heap.
All the code in java is in the class.
Static purpose: 1. Allocate a storage space for a specific data? Static data member 2. A method is not associated with a specific object, and its main purpose is to


build ant
javadoc tool for the main method ; it starts with /**Conclusion*/ Document tag? The @ symbol is at the top (remove the leading symbol *), the document label in the line;? Comment only for public and protected members; comments for private and accessible members in the package are ignored.
Label instance?
Python creates makefiles

Guess you like

Origin blog.csdn.net/jifeijixufly/article/details/17258989