function overloading (overload)
Concept:
In the same class, more than one function with the same name is allowed, as long as their number of arguments or arguments
Type can be.
Features of the function:
Regardless of the return type, only related to the parameter list,
Array
Concept:
A collection of data of the same type, in fact the array is a container.
Format:
element type [] Array name =new element type
Memory structure
Java programs need to allocate space in memory at run time. In order to improve the efficiency of the operation, there is a team space
Zoning, because each region has a specific way of handling data and memory management.
Stack Memory:
Used to store local variables, and when the variables are used up, the occupied space is automatically freed.
Heap Memory:
Arrays and objects are stored in heap memory by the instances created by new.
Each entity has a memory address value.
The variables in the entity have default initialization values.
Entities are no longer used and will be recycled--garbage--in an indeterminate time-(c + + is manually removed
Delete),
method to:
Local Method Area:
Register:
day03 Java Memory Architecture and overloading