The Java environment is:jdk1.8 java Version "1.8.0_171"1. Installing the MySQL Jar: http://dev.mysql.com/downloads/connector/j/When I downloaded it, I couldn't open it, and the blue Light opened quickly. Blue lights are sometimes not
The following is the learning process of the query information, others summed up the information, relatively easy to understand (standing on the shoulders of giants, hope Bo Master do not investigate)Create typeAbstract Factory mode
First, the keyword explanation:1.try catch: This includes code that is caught and processed if an exception occurs, and if there is an error between the code, it does not affect the execution of the program;2.throw: The exception that is explicitly
1, Try-catchE.printstacktrace (); Will print out the method's call traces, in this case, will print out the exception starts at the 16th line of testexception, so that it is easy to locate and analyze where the exception2. Catch with the parent
Java Basics:
The difference between ArrayList and LinkedList and the underlying implementation principle
ArrayList
Add Operation implementation
Expansion factor
HashMap and
Java Learning Notes (i.) I. JDK\JRE\JVM differences
Name Full
Name
Chinese name
Jdk
Java Development ToolKit
Java Development Kit
Jre
Java Runtime Environment
Java
(1) Create objects with the new statement, which is the most common way to create objects.(2) using the reflection means, call the Java.lang.Class or Java.lang.reflect.Constructor class newinstance () instance method.(3) Call the object's clone ()
Access control permissions in Java are:Public: Unlimited access to anyoneProtected: only allowed to call each other in this class, and can also be called by subclasses based on the parent class (that is, the subclass can call the parameters or
IntroducedCountdownlatch is a synchronous helper class that allows one or more threads to wait until the other threads have finished executing before starting execution.Initializes the countdownlatch with the given count , which means the number of
The This keyword must be placed in a non-static methodThe This keyword represents itself, and the main uses in the program are the following:Referencing member variables using the This keywordUse the This keyword to refer to other construction
It's easy to understand.I will directly put a program, the program has instructions!!Parent class:1 PackageParentandson;2 3 Public classParentextendsObject {//4: Final decorated class cannot inherit, 3:object is a direct parent or indirect parent
Properties, methods, construction methods, and free blocks are members of the class, and the order in which members of the class are executed when the object of the class is created:1. Static and static initialization of the parent class is fast and
Java final is a very flexible existence that can be used in three places: classes, variables, methods.Class:The final use of the class above is equivalent to the use of sealed in C #. is to avoid inheriting from other classes.Variable:When final is
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service