The virtual machine loads the data of the description class from the class file into the memory, verifies the data, transforms parsing and initializing, and finally forms the Java type that can be used directly by the virtual machine, which is the
1 Overview
The Virtual Machine loads the description class data from the class file to the virtual machine, verifies, converts, parses, and initializes the data, and finally forms the Java type that can be directly used by the virtual machine, this
Six Design Principles
Single Responsibility Principle
Rys replacement principle
Dependency inversion principle
Interface isolation principle
Dimit Law
Principle of opening/closing
1. Single Responsibility
Error cs0001 internal compiler Error
Error cs0003 memory overflow
Error cs0004 escalation to error warning
Incorrect cs0005 compiler option should be followed by correct parameters
Error cs0006 unable to find the dynamic link metadata file
Error cs00
I. What is a Java class file?The javatm virtual machine specification (second Edtion) Statement: a Java class file consists of eight-byte streams, all 16-bit, 32-bit, and 64-bit data are constructed by reading 2, 4, and 8 bytes respectively. The
Oriented to the design principle and oriented to the design principle
How to measure software design quality 1
Primary criteria
Meet functional requirements of software
The design that meets the functional requirements of software is not necessarily
A simple introduction to anonymous inner classes in the Java Learning Note 25 Preliminary cognitive Java class, but there are a lot of other details in the inner class, so this blog is derived. In this blog you can learn about the use of anonymous
2. Richter Replacement principle:LSP(Liskov Substitution Principle) richter substitution principle, defined as long as the parent class appears where the subclass can appear, and after the subclass is replaced, There is no problem with the program,
The Java reflection mechanism is in the running state, for any class, can know all the properties and methods of this class , for any object, it can be called any of its methods and properties, the dynamic acquisition of information and the
In the Java language, abstract classes and interface are the two mechanisms that support the definition of an abstraction class. It is the existence of these two mechanisms that gives Java a powerful object-oriented capability. Abstract class and
The generation and use of objectsThe constructor is used to construct an instance of the class, and the Java language invokes the constructor with the new keyword to return the class instance. A constructor is a fundamental way for a class to create
1, the inheritance relationship between classes and classes is generated by the extends keyword. When the same properties and behaviors exist in multiple classes, the content is extracted into a separate class, so that multiple classes do not need
The basic idea of a class is data abstraction and encapsulation.Data abstraction is a programming technique that relies on interfaces and implements separation. The interface of a class includes the operations that the user can perform, and the
Reference 51542059Anonymous classes, like names in Java, do not have a name identified in the class, of course, after compiling a name will be arranged.Here is a simple example of an anonymous class: Public classClient { Public Static voidMain
oo (object oriented)Object-oriented is a kind of thought, is based on the process, that is, object-oriented is to implement the function through objects, the function encapsulated into the object, let the object to achieve specific details; The idea
Inner classAs the name implies, an inner class is a class defined internallyThe inner class places the class inside other classes. Looks like a code-behind mechanism.The inner class understands the perimeter class and can communicate with it.The
A question from the programmer interview book.Describes a friend overload of a template class, implemented in C + + code?This actually examines the following questions:1. Writing of template classes2. Writing of friend function in template class3.
First, the basic concept1, class inheritance, is the new class from existing classes to get the existing characteristics. Or the process of generating a new class from an existing class is the derivation of the class. The original class is called a
First, use anonymous inner class inner classAnonymous inner class because there is no name, it is created in a somewhat strange way. The creation format is as follows:New Parent class constructor (argument list) | Implement Interface () {
1. Object: Is the most basic unit that forms the system; Attributes: Describes the static characteristics of objects; Behavior: Describes the dynamic characteristics of an object. In the Java official parlance, variables are referred to as field, so
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.