1. Load the database driver (jar file )
// need to download a database of Jar package, and import the appropriate JDBC project, create the path!
Class.forName ("Com.mysql.jdbc.Driver");
2. Get a database
What is upward transformation?
Upward transformation -- assign the subclass object to the reference of the parent class
Student s = new Student ();
Person p = s;
Which members can be called by a reference depends on the type of the reference.
Linear table definition:Finite sequence of N data elements
Linear tables are divided into sequential storage structures (arrays) and chain storage structures (linked lists)
Sequential Storage Structure: uses a continuous memory space to store data
Log framework: Provides an interface for calling logs. The actual log output is delegated to the log system for implementation.
JCL (Jakarta Commons Logging): a popular log framework, many of which depend on JCL, such as Spring.
SLF4j: provides
HashMap is an important data structure in Java!
A more important data structure than HashMap is HashTable. The most important difference is that HashTable is thread-safe in the legend, this is my fault. I moved to the podium without understanding it
I. Backtracking
Backtracking is a systematic and leaping search algorithm. It searches for the solution space tree from the root node based on the depth-first policy in the solution space tree that contains all solutions to the problem. When an
1. ArrayList Overview:
ArrayList is an array queue, which is equivalent to a dynamic array. Compared with the array in Java, its capacity can dynamically increase. It inherits from AbstractList and implements the List, RandomAccess, Cloneable, java.
The last time we implemented a simple web server version that can implement some basic functions, we also mentioned that this version does not support session and cannot implement real dynamic interaction, this time, we will complete this
1. What is a transaction: a transaction in a database refers to a set of logical operations. These operations are either successful or fail to be executed.2. Transaction Management: by default, Mysql automatically manages transactions. An SQL
In WEB development, you may rarely need to display the ApplicationContext to get some beans managed by Spring. Today I have met them. Here I will share with you about WEB development, how to obtain ApplicationContextFirst, you must understand how
Package ioTest. io3;/** delete a folder with content: Delete the folder from the innermost point. It is recommended that you do not delete the folders useful on the hard disk. * method idea * loop + recursion */import java. io. file; public class
Import java. io. *; public class ByteArrayDemo {public static void main (String [] args) {String str = "abcdefghijklmnopqrstuvwxyz"; byte [] B = str. getBytes (); ByteArrayInputStream in = new ByteArrayInputStream (B); ByteArrayOutputStream out =
Package ioTest. io1; import java. io. file; import java. io. fileWriter;/** IO technology, which is classified as follows according to the method of operating data: * two base classes of byte stream and bytes stream * byte stream: * InputStream,
25. Create and use your own class loaderExcept for the root loader, the JVM is an instance of the ClassLoader subclass. programmers can use the extends ClassLoader subclass and override its method to implement a custom class loader.Obtain the
Today we are going to talk about grouping the List, and then encapsulating it with Map. You may still have some fuzzy information after reading it.
Take a look at the project structure:
The User class is a VO class, and the main logic is above
Hello everyone, let me talk about the adapter mode today.
Let's first look at the concept of the adapter:
The adapter provided by Baidu encyclopedia is an interface converter. It can be an independent hardware interface device that allows hardware
Factory Method: defines an interface used to create an object, so that the subclass decides to instantiate the class. The factory method delays the instantiation of a class to the Child class. Structure of factory method modeTaking the big talk
The construction method of the Random class:Public Random (); // This constructor uses a number related to the relative time of the current system time as the number of seeds.Public Random (long seed); // you can specify the number of seeds to
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