1.ArrayList class overviewThe underlying data structure is an array, query block, and delete slowly.Threads are unsafe and highly efficient.2.ArrayList case2.1 Storing strings and
Class Constructor: Provides information about a single construction method of a class and access to it.Get the construction method by means of reflection and use PS: First ignore generics A.1: Gets an array of constructor methods:Public constructor[
1. Pure random number generatorxn+1= (aXn + c) MoD mModulus=231-1=int. MaxValuemultiplier=75=16807C=0It is possible to repeat after the number of 2^31-2 has been displayed. Hands-on brain: Write a method that uses the above algorithm to generate a
Boxing (encapsulating objects), that is, an object that converts an underlying data type (such as int) into an underlying type wrapper class (such as New Integer ())Unpacking is the inverse of boxing, which is to convert an object of the underlying
I used to sync the data to the server1. Send a TXT text using FTP and then disassemble it with PHP.2. Using a direct link databaseThe quality of the scheme depends on 1. Whether the database can be directly linked (security is also a problem) 2.
Client programmer: A class consumer who uses the data type in its application, his goal is to collect a variety of classes for rapid application development.Class Creator: A programmer who creates a new data type, with the goal of building the class.
1.System class overviewThe system class contains some useful class fields and methods. It cannot be instantiated.2. Member Methodspublic static void GC () runs the garbage collectorpublic static void exit (int status) terminates the currently
1. Installing the JDK
2. Environment variables:
Add this sentence %java_home%bin;If you change the version just put Java_home change. After success
3. First Hello World
class sayhello{ publicstaticvoid main
There are two main types of data in Java, basic data types and reference data types.Basic data type:byte: Smallest data type in Java, 8 bits in memory (bit), 1 bytes, value range -128~127, default value 0short: Shorter integer, 16 bits in memory, 2
Serialversionuid the serialization mechanism for Java. In simple terms, the serialization mechanism of Java is to verify version consistency by judging the serialversionuid of the class. When deserializing, the JVM compares the serialversionuid in
Java interfaceInterface, is an abstract type, is a collection of abstract methods, interfaces are usually declared by interface. A class inherits the abstract method of an interface by inheriting the interface.Interfaces are not classes, and the way
The default Java AES supports a maximum of 128bit keys, and throws an exception if you use a 256bit key:
Java.security.InvalidKeyException:Illegal Key Size
In fact, the Java Official network provides a solution, need to
We first understand the traditional thread synchronous communication through a face test.Topic:The child thread loops 10 times, then the main thread loops 100 times, then goes back to the sub-thread loop 10 times,Then go back to the main thread and
I. A brief discussion on the reflection mechanism of JavaThe recent study of Java research has been very strong, mainly to see the blog as a learning style. Here are some of my reflections on the reflection mechanism of Java, I hope you can see the
1 //application of the interface: the design pattern of the factory method2 public classTestfactorymethod {3 public Static voidmain (string[] Args) {4Iworkfactory i =Newstudentworkfactory ();5 i.getwork (). doWork ();6 7Iworkfactory I1
Java Event Monitoring//Event Monitoring//Event monitoring, wrote a small case, click the button to change the color of the Panel. Importjava.awt.*;Importjavax.swing.*;Importjava.awt.event.*; public
Package com;import java.util.calendar;/** * calendar class overview and methods * Calendar class Overview: The Calendar class is an abstract class that provides methods for converting between specific moments and a set of calendar fields, such as
AspectJ's implementation of AOP and AspectJAOPI. knowledge you should understand
1. Many frameworks have implemented the idea of AOP. Spring is one of them and can complete cross-section programming. However, AspectJ also implements the function of
Detailed explanation of jdbc database connection process and driver loading and design mode, and jdbc Design Mode
First, import the JDBC jar package;Next, the Code is as follows:Class. forName (xxx. xx. xx) returns a Class. forName (xxx. xx. xx) 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