Hanshunping _php Programmer Open Class (first quarter) 02_ single-linked list in memory form anatomy _ Learning Notes _ source code illustration _ppt document collation
Vencimaron:http://blog.csdn.net/wenximalong/
Linked List-The most flexible data structureIt is convenient to solve complex problems and algorithms with linked lists.Content Introduction1. What is a linked list2. One-way linked list3. Doubly linked list4. Ring Linked List5. Using the r
Generalization relationship (generalization)The inheritance structure of a class is represented in UML as: generalization (generalize) and implementation (realize):The relationship of the inheritance relationship is is-a, and if the two objects can be represented by is-a, it is an inheritance relationship: (.. Be ...)Eg: Bicycles are cars, cats are animalsA direct representation of a generalized relationship with a hollow arrow, as indicated (a inheri
, the memory address), which forces the reference to point only to the object that was initially pointed to, and changes its point to cause a compile-time error. Final is not responsible for the change in the object it points to.Summarize A reference to the local variable data and objects (String, Array, object, and so on) that are used to hold some raw data types in the stack. But not the object contentThe heap contains objects created using the New keyword.A string is a special wrapper
there is no loop in the instance diagram. In other words, it can only be a one-way relationship.
Figure F
Synthesis (composition)
Synthesis ( fig. G) is a special form of aggregation, implying "local" within the "whole" life-cycle responsibility. Synthesis is also not shared. Therefore, while the part does not necessarily have to be destroyed with the destruction of the whole, the whole is either responsible for maintaining a partial survival state o
Schematic diagram of Java Virtual Machine 4. JVM machine Instruction Set0. Preface
The Java virtual machine runs binary machine code like a real computer. java source code compiled. the class file is the binary machine code that the Java
~://System.out.println ("Please enter a string:"); while (true) {// String line = S1.nextline ();// if (line.equals ("End")) SYSTEM.OUT.PRINTLN ("You entered is:" + line); // } }Run:4) Enter the command line via args:We all know that the main () method has one parameter:string[] args, which we can pass in the commandInput parameters, and then directly in the main program Args[i] to visit:Example code:public
0. Preface Java virtual machines, like real computers, perform binary machine codes, and we compile. Java source code into a. class file, and the class file is the binary machine code that the Java virtual machine can recognize. Java
intuitiveThe following diagram shows the composition concept of JavaSE8:It can be seen clearly that JavaSE8 consists of 4 parts: JVM, JRE, JDK, and Java language. The second section will cover these 4 sections in detail.2. Detailed concept of compositionNow we pick up the scalpel to dissect the pieces. Below we explain the parts from the bottom up.2.1. JVM(Java
Schematic diagram of the Java Virtual Machine ---- JVM runtime data zone, virtual machine ---- jvm
JVM Runtime data zone (JVM Runtime Area)In fact, it refers to the division and allocation of computer memory space during JVM running. This article will discuss the JVM runtime data zone through the following topics.
Topic 1.JVM runtime data ZoneIn what?
Topic 2.Virtual Machine StackWhat is it?Virtual M
)Press the key combination "Win" + "R", bring up the Run window, enter CMD in the "Open" text box, click the OK button.Pop-up the command prompt interface, enter Java at the cursor, and enter.After entering "Java", enter (or Javac), if there is help information showing Java, the environment variable setting is successful.AppendixMain programs in the JDK:
One: Define the adjacency table structure storage diagramThe traversal of the package graph;//The Establishment of adjacency table implementation diagram//storage edge class Edgenode {int index;//used to use index, in fact, the standard notation is (adjvertex) int value;//weight Edgenode Nextarc; The type of the Adjacency table node pointing to the next arc}//class
Simplified diagram:
The Java platform provides a new collection framework. The set framework consists of a group of interfaces used to operate objects. Different Interfaces describe a set of different data types.
Framework of Java 2 sets
Set interface: Six interfaces (short dotted line), indicating different set types, is the basis of the set framework.
Abstract
Java Virtual Machine Solution composition OneJava Virtual Machine Solution composition TwoJava Virtual machine Structure Diagram III"1" Class loading system---> is responsible for loading class information from the file system or network and storing it in the memory space of the method area"2"
,personconstructor inherit Object:2. Super keyword, super is used to invoke the constructor of the parent class. If there is no super keyword in the subclass, the compiler automatically adds the default super () method. Therefore, subclasses call the parent class constructor through the super () method.3. Then the main function, through the new directive , initiates the creation of the childconstructor obje
; Computer comp; //One computer per person, one class can be used as a property Public voidStudy () {SYSTEM.OUT.PRINTLN ("Our students learn all with the" +comp.brand+ "CPU of the computer is" +comp.cpu); } Public voidSayHello (String sname) {System.out.println (name+ "Say hello to" +sname+ "); } Public Static voidMain (string[] args) {computer C=Newcomputer (); C.brand= "Lenovo"; C.cpu= 920; Student S1=NewStudent (); //student
The UML diagram and code expression of the relationship between classes and classes in java. If you need it, refer to it. There is a relationship between the class and the class:
Generalization)
Dependency)
Association)
Aggregation)
1. Generalization)
Definition:Represents the inheritance relationship between
After two days of hard work, don't say anything, first come to a picture:
Looks so beautiful, O (∩_∩) o haha ~
The experimental environment is Ubuntu.
1.JDK version must be 1.7 or below, JDK1.8 No, always error,
2. Download Sootclasses-2.5.0.jar Package: http://download.csdn.net/download/sheshizhang/4573588
Can be on the GitHub on the official website of the small example to try Taker: Https://github.com/Sable/soot/wiki/Introduction:-Soot-as-a-command-line-tool
3. Following the formal use of
2. Path name of String path file
3. Inline Enumeration Class
pathstatus Address is valid enum class private static enum Pathstatus {INVALID, CHECKED};
4. Prefixlength prefix length
The UML diagram for the file-related core is given below: in fact, the operation is FileSystem : The abstraction of the local file system, the real operatio
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.