Progress Report VII vacation week (8.12-8.18)

A. Most of the time this week spent on these areas

1. Read the e-book reference java

2. Complete the B report

3. Read the "Unified Modeling Language"

In addition to writing daily reports about two hours learning about one hour time will come to see java e-book and the Unified Modeling Language, the rest of the time with a look at the classic books

II. This week harvest

1. the Java language

1. Format String

A. Create a format string

1.str.format(String format,Object...args)

2.format(Local l,String format,Object...args)

II. Date Time String Format

1. Date Format

% Te,% tb,% TB,% tA,% I,% tc,% Share,% tj,% tm,% TD,% Co.

2. Time Format

% Th,% Ti,% tk,% tl,% TM,% TS,% TL,% tN,% tp,% tz,% TZ,% ts,% China

3. A common format date and time combination

%tF,%tD,%tc,%tr,%tT,%tR

III. Type Conventional Formatting

%b,%B,%h,%H,%s,%S,%c,%C,%d,%o,%x,%X,%e,%a,%n,%%

2. Regular Expressions

3. string builder

4.JAVA only supports single inheritance, do not support multiple inheritance, that is, a class can have only one parent. However, in practical applications, we often need to use multiple inheritance to solve the problem. To solve this problem, JAVA provides an interface to achieve multiple inheritance class.

JAVA language using the keyword interface to define an interface.

Syntax is as follows:

[List] [name of parent interface extends modifier] interface interface name {

[Public] [static] [final] constant;

[Public] [abstract] method;

}

Interfaces and abstract classes in common:

(1) an abstract class interface not be instantiated, but can be implemented other classes and inheritance;

(2) abstract classes and interfaces can contain abstract methods, implement common interface or subclass inherits the abstract class must implement all the abstract methods.

5 5.java divided memory.

1: Register. 2: Local area method. 3: Method area. 4: Stack. 5: heap.

Stack: local variables are stored (variables defined in the function, the function parameters, variables statement);

   As long as the data area where the operation is completed the end, the data will be released.

Heap: for storage arrays and objects, which is the entity. What is the entity ah? It is used to encapsulate the plurality of data.

 1: Each entity has a first memory address value.

 2: heap memory variables have default initialization values. Because different data types, the values ​​are not the same.

 3: garbage collection.

III. The problems encountered

  The main problem is in reading Java has a bibliography, when a lot of content is not previously had contact, sometimes do not understand, most of the test yourself or online access.

Four experiences:

        To know the importance of independent thinking, do not encounter a problem online access to information or help someone else, not in the face of their own language point, to go their own test, only in this way will have to grow and harvest. 

Five next week plan:

       First, the completion of the pre-Unified Modeling Language learning;

       Second, we continue to learn java

Guess you like

Origin www.cnblogs.com/xp-thebest/p/11371378.html