Turn from:http://justsee.iteye.com/blog/853546Body:1, right click on the project name, select New-------àuml2 Model2. Give class diagram a name3. Class Diagram1) If you want to map the entire project into a class diagram, drag the entire project into the
declared in the interface. In UML, the implementation relationship between a class and an interface is represented by a dashed line with a hollow triangle.
Public interface Vehicle
{public
void Move ();
}
Public class ship implements Vehicle
{public
void Move ()
{
...
}}
}
public class Car implements Vehicle
{public
void Move ()
{
objects. An arrow line with a diamond at the end represents an aggregation (aggregation), meaning that an object owns another object or is responsible for another object. Generally we call an object to contain another object, or a part of another object. Aggregation means that the aggregation object and its owner have the same life cycle.Abstract class names are represented in italics, and abstract operations are also represented in italics. The
interpreter.The following is the byte code to be run by the interpreter, executing:Java HelloWorldResults:Explain the concept of bytecode here.For the C + + language, the compiler compiles the string code directly into binary code that can be run directly by the operating system.For languages like Java,python, their c
IntroductionWe know that Java code is compiled with bytecode, how does a virtual machine load these class bytecode files? How is the method call made after loading? A class of file structuresThe cornerstone of IndependenceJava has a slogan called Write once, running around. The implementation of this slogan is a virtu
Recently I watched the old Luo video, followed by a framework class JdbcUtils. Java that uses java to operate MySql databases, to complete addition, deletion, modification, and query of databases. Query this part, including common query and UtilizationReflectionThe completed query mainly includes the following function interfaces:
1. public Connection getConnecti
commodity to a product that has an added class, registering a user registration class, and so on.
(3) boundary class : The boundary class is used to abstract the interaction objects between the external user and the system, including the interface classes, such as dialog boxes, windows, menus, etc.
In the early stages
This is the string class above the comments, I use Google Translate, although a bit of grammatical problems, but probably can be translated/** * The {@code String} class represents character strings. All * strings literals in Java programs, such as {@code "abc"}, is * Impl
The life cycle of the Java classLife Cycle: Load (Loading)- Verification (verification)-"preparation (preparation)---" Analysis (Resolution)--" Initialize (initiation)---use (using)----unload (unloading). Where the verification of yellow---"Preparation---" Resolution is called the connection (linking). As far as code execution is concerned:1. Connect phase: Do not execute programmer code2. Load phase: Can
relationship between interfaces and implementations. There is nothing to talk about. In the class diagram, use a dotted line with a triangular arrow to indicate that the arrow points from the implementation class to the interface.Dependency: the weakest association between objects. It is a temporary Association. Code
Java Tour (Fri)--this,static, keyword, main function, encapsulating tool class, generating Javadoc manual, static code block
Have a lot of weekend, continue to study
One. this keyword
Used to distinguish between local variables and member variables with the same name
Features of thisThis represents the object of this
repetition, there is a list in a, which holds the B object's n references , that's it.Well, to here, already put the above diagram of the relationship is finished, I hope you can have some gains, I also spent a lot of time ah (drawing, generate code, write to the blog, alas, a sweat). But it's worth it if you can get a thorough understanding of these relationships in UML
Unified Modeling Language (UML. It includes the following important functions:
Visualizing)
Specifying)
Construting)
Document creation (documenting)
UML includes:
User case diagrams)
Class Diagrams)
Sequence Diagram (sequence diagrams)
Collaboration diagrams)
Activity diagram (activitiy diagrams)
Component diagra
Java The class initialization order may be caused by the Bug Recently encountered problems in programming , class member initialization process Everyone knows, is the basic knowledge, but some places are very subtle, re-learnTo improve the quality of your code.Describe the scenario that you are experiencing first: sub-class
Let's go back to classpath.The role of Classpath:The function of classpath is to specify the path to the lookup class: When a class is executed using Java commands (the main method in the class), the class is looked up from the classpath.specify a way to classpath one:Set th
class.The static code block executes only once, regardless of how many objects are created.Can be used to assign a value to a static variable for initialization of a class.1 Packagecom.oracle.demo04;2 3 Public classStatic {4 PrivateString name;5 Private intAge ;6 /*constructs a block of code to create an object to execute once*/7 //Building
Blog migration to: http://www.micmiu.com
Following the introduction of a Japanese open source software (the software can only achieve QRCode) Original: Java implementation of two-dimensional code QRCode coding and decoding (http://sjsky.iteye.com/blog/1136934), today found another excellent open source weapon--zxing , it is more flexible and convenient, and can realize many coding formats.
Full-Text catal
In the jdk5.0 version, a new interface java.lang.instrument.Instrumentation is added, which can be used to modify the byte code of the class when the class is loaded, and to change the implementation of the function of the class. In this way, we can implement the functions of AOP, which is another kind of AOP implement
(2). static domain-put in memory common storage unit, not placed on specific object, with static modifier(Continuation of the non-professional code Nong Java Learning Note 3 Abstraction, encapsulation and Class (1) ... )(3). Static initializer-a set of statements surrounded by a static boot with a pair of curly braces, similar in function to constructors(4). The
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.