1. What is an exception?First, the anomaly simulates "abnormal" events in the real world.Second, Java uses "class" to simulate exceptions.Third, a class is an object that can be created.NullPointerException e = 0x1234;e is a reference type, and the
Introduction to Java Decorator modeFirst, assume that there is a worker interface, it has a dosomething method, plumber and Carpenter have implemented the worker interface, the code and the relationship is as follows:1. Worker.java package decorator;
I. Overview of IO streamsThe 1.IO stream is used to transfer data between devices.The operation of the data in 2.Java is carried out in a stream manner.3. Classification:1) data by operation: Byte Stream (There are early, can transmit any data) and
Design patterns are reusable solutions that have been proposed by 4 authors, called "GoF", also known as quad groups.The design pattern is divided into: creation type, structure type, behavior typeThe singleton design pattern belongs to the creation
Polymorphism is actually a variety of states, overload (Heavy) is a polymorphic, is a compile-time binding, that is, static bindings(pre-BIND), override is a run-time binding (late binding).Conditions for polymorphism:have inheritance;have
Java year of birth: 1996
1.1 Java Programming Platform
Java is not just a language, Java is a complete platform:
There is a huge library that contains many reusable code, such as drawing functions, network connectivity,
First, Experimental Content1, the operation of the textbook TCP code, pairing, one-man server, one-person client;2. Use encryption and decryption code package, compile run code, client encryption, server decryption;3. The client encrypts plaintext
Singleton design mode (hunger and lazy)
1. When to use it: It is recommended that the configuration file be encapsulated into an object when multiple programs read a configuration file. It is convenient to operate on the data, and ensure that
Java Database Programming and Java XML parsing technology, database programming xml1. JDBC Overview
A. What is JDBC?
Java DataBase Connectivity: a Java API used to execute SQL statements. It consists of a group of classes and interfaces written in
List. removeAll Big Data Size Optimization for JAVA Collection framework Optimization
Today, a project in the company requires a complementary set of two sets. Considering that the collection class has the removeAll method, we decided to adopt this
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