chapter 2
Control object with Referenceence
Six places of data storage:
Registers: JVM control.
Stack: Store the value of the original data type and the reference to the object.
Heap: Data and objects generated by New.
Static Storage: Static member stores static members in the object.
CONSTANT Storage: Store constant.
Non-Ram Storage (Streamed Object, Persistent Object Object). Personally think that these six, how to store, how can proceeds to run in depth.
The lifecycle of the Java object is different from the Primitive.
The program is an object of a bunch of methods, and the method also takes other objects and send messages to other objects.
Class methods and static data (Class Date) are class, all objects of classes are only common, advocating direct use classes, and static is often used to manage this type of object.
I think the key points of this chapter should be comments. The comment extraction tool is Javadoc, which uses Java compile technology to find special annotation tags in the program. The name and method name around the comment can be brought.
Note Syntax: All commands are / ** start, * / end. There are two main usage, embedded HTML and document markers (DOC TAGS). Standalone Doc Tags, inline Doc Tags, enclosed with rough, @ Start. Note In front of classes, variables, methods. Javadoc will only process the comment documentation for members of public and protected.
@see: Quote other classes
{@link package.class # member label} label as a hyperlink.
{@docroot} Returns the relative path of the root in the document directory.
{@inheritdoc} inherits the document of the most recent base class of this class to the current document.
@Version Verson-Information
@Aothor Author-Information
@since This tag indicates which version begins to provide some feature.
@Param Parameter-Name Description wherein the PATAMETERE-NAME indicates a parameter list, and the Description can be divided into a few lines of text. This tag can have a number, a tag represents a parameter.
@Return Description Returns the value of the value.
@Throws full-qualified-class-name description where fully-qualified-class-name must be the unusual name declared by the method, DESCRIPTION Description What causes the method to produce an exception.
example: