1. View the Java environment in the system[Email protected] ~]# java-versionOPENJDK Version "1.8.0_101"OpenJDK Runtime Environment (build 1.8.0_101-b13)OpenJDK 64-bit Server VM (build 25.101-b13, Mixed mode)To view the JDK information further:[Email
Packagetest;ImportJava.io.BufferedReader;ImportJava.io.File;ImportJava.io.FileOutputStream;ImportJava.io.FileReader;Importjava.io.IOException;Importjava.util.ArrayList;Importjava.util.List;//import Java.util.Scanner;/*** Notice: * 1. Use only the
Static variables:A static variable is like a member variable, which is characterized by a static front.The normal variable will have multiple copies, it exists in each object, but there is only one copy of the static variable, it belongs to the
public static void Main (String args[])Public: Indicates that this method can be called externally.Static: Indicates that this method can be called directly by the class name.Void: The Main method is the starting point of the program, so no return
For a variety of reasons, sometimes you may want to connect to other people's database, or different databases can not be automatically converted, refactoring the amount of data is too large, we have to connect multiple data sources in a project.
Modifier Summary: One: public protected default PrivateA decorated class, a decorated method, a decorated property, and a decorated code block.class:Top-level classes can only be decorated with public, and top-level classes cannot use private and
A test was performed on the performance of the Get methods implemented by various methods.There are a total of 5 tests, each of which is performed 100 million times1. Get method directly through Java2. Test with a high-performance Reflectasm library3
First, install the JDK1, according to your current environment needs, download the appropriate JDK and installation, installation steps and other Mac software installation method, I installed the JDK1.8.0_74.JDK,MAC in the default location
First, the two main problems in network programmingone is how to accurately locate one or more hosts on the network, and the other is how to reliably and efficiently transfer data when the host is found. in the TCP/IP protocol, it is mainly
1, software, programs, computer language is whatProgram: A set of instructions that can be continuously executed by a computer;Software: A collection of multiple programs for the completion of a particular function;Computer language: Refers to the
Environment Construction:Path: When executing Java commands, the system will go to the PATA configured path and look for the command to execute.Purpose: To enable Java commands to be executed anywhere--------------------------------------------------
The core project contains 6 interfaces that interact with the operating system, and each backend implements these 6 large interfaces.
Application: A client application-level event that runs the application and notifies the API,
There are four types of reference in Java: Strong reference, soft reference, weak reference, and virtual reference. --should be added starting with version 1.2.This concept is related to garbage collection.If you do not know these concepts, then you
First look at the following example:The results are somewhat different from what you might imagine.The reasons are as follows: In fact, the first statement of each subclass construction method is implicitly called super (), if the parent does not
Install spring plug-ins in various versions of eclipse, eclipsespring
1. Before installation, you must know how to download it:
General information found on the internet is here GG --> http://spring.io/tools/sts/all
Obviously, this version is
Container -- WeakHashMap, weakhashmap
I. Overview
WeakHashMap is a type of Map. According to its class commands, it combines the features of WeakReference and HashMap to construct a Map with keys that can be automatically recycled.
We have
JAVA communication series 2: mina entry-level summary, java Communications mina entry-level
I. Learning Materials
Mina entry instance (1)Http://www.cnblogs.com/juepei/p/3939119.html
Mina getting started tutorial (2) ---- spring 4 integrates MinaHttp:
FastDFS installation configuration, fastdfs
FastDFS
FastDFS is customized for the Internet, fully considering redundant backup, load balancing, linear resizing and other mechanisms, and paying attention to high availability, high performance and
Basic-WeakReference, weakreference
I. Overview
To better understand the principles of WeakHashMap, we need to first understand the functions and implementation principles of WeakReference. Java has a special package, java. lang. ref, which defines
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