"Java programming ideas" study notes - and there is time to create the first chapter 1.7 sp1 object (abstract data types, java memory space)

1. Object-oriented programming

After fill the above concepts, when we want to implement the "object-oriented programming" behavior, we need to do something it:
1, abstract data type
2, inheritance
3, polymorphism
4, Package
Pass : abstract data type refers to, the specific issues in the elements, in accordance
1. data
2. relevance & behavior (ie feature)
three elements of abstract behavior
, however, the basic skills in addition to these points, we have some additional issues to consider, which the most important thing is - and there is time to create objects

2. objects created and there is a time
we all know, we design, define a class, the class is instantiated by objects that send information to each other to achieve the desired result
and we have to discuss the problem here is that:
1. the object is created where to store?
2. When an object is created and when it was released?
Each language has its own problems for both options before discussing this issue I think it is necessary to discuss java memory space , running processes java program
which is additional content of the book, possible follow-up will be put in the book and, but before the discussion on the subject of where we should be able to know what java place used to store
the object is destroyed before discussing at what time, we should first discuss the run java program through which stage

1.1java memory space

1.1.1jvm what memory space
some java programs, when executed, will be converted first by javac compiler class bytecode files, and then to the java virtual machine (the JVM), then the class loader jvm be compiled, to the JVM memory, and then by the execution engine executes the code
Here Insert Picture Description
here JVM memory is the memory we need to focus on, then, we will discuss the specific structure of its internal
Here Insert Picture Description

Published 11 original articles · won praise 0 · Views 222

Guess you like

Origin blog.csdn.net/qq_41445205/article/details/104099497