/* AUTHOR:ZSS
* Date: March 31, 2017
* Function: According to the file name to determine the type
* Accept parameter type: String
* Return parameter type: String
* Note: The file type is not perfect, it is necessary to add
*/
public class FileType {
String
String constants
-
JDK1.0
StringBuilder
String variables
Thread not secure
JDK1.0
StringBuffer
String variables
Thread Safety
JDK1.5
The difference between three people
The
the sequential structure of a program statement can only be executed once. If you want the same operation to execute multiple times, you need to use a looping structure.
There are three main looping structures in Java: While loops do...while loops
This article for the author in the learning process according to teacher's guidance to organize themselves.
1. JDK, JRE, JVM
①jdk:java Development Kit Java Development Kit
②jre:java Runtime Environment Java Runtime Environment
③jvm:java Virtual
Jingle: Pool heap, stack of stacks
Discard the pool, station music (a left the bathroom, stomach pain stand up)
The memory management mechanism in Java is managed automatically through the JVM. Understanding the fundamentals of the JVM helps to
First, Java.lang.ref
JAVA.LANG.REF Package specification (see JDK API for content, this article is not posted) a few points are important.
1. The classes in this package allow applications to interact with the JVM garbage collector;
2. The
This article records the majority of my knowledge of Java EE during my college years, and as a simple primer for people who haven't touched Java EE, the content of this blog is, after all, just the tip of the iceberg.
Chapter 1A. What is a Java EE
The encoding problem when compiling. java files is known to require that a coding scheme be correctly specified when compiling the. javascript file, which is used to decode the byte stream of the. java file.
So how do you specify the correct
We all know that Java virtual machines are used to run our compiled. class file, class file with all kinds of information, virtual confidential run these files, the first thing is to load into the virtual machine, which leads to this summary of the
Java has an automatic garbage collector that does not require us to manually clean objects, but it requires us to create objects manually. So, for an object, its creation process or the initialization process, how we design our own class and how to
Turn from: http://developer.51cto.com/art/201009/228387.htm
The JAVA2 platform includes the Standard Edition (J2SE), Enterprise (Java) and miniature (J2ME) Three versions, here to describe the three versions of the difference and contact, I hope
There are two main ways to connect a database with Java, one is to connect with the Jdbc-odbc bridge, the other is to connect with the corresponding driver provided by the manufacturer, first of all to talk about the first connection.
The JDBC-ODBC
Note:
There may be differences in the expansion mechanism for different JDK versionsExperimental environment: JDK1.8
expansion mechanism :
When adding elements to the ArrayList, ArrayList will increase its storage capacity and meet the requirements
Essential Reason: A configured Java Bean with syntax errors in SQL statements generated automatically by hibernateThe reasons are as follows:Scenario 1: There is a conflict between the field name/table name and the database keywordSituation 2. MySQL5
/*** Created by Sandy.liu on 2018/7/28.* Thinking in Java version 4, Chapter 5, Practice 2* Create A class which includes the values, one is initialized at the point of Defination,* Another is initialized by constructor. What's the different between
IntroductionAs we said in the previous article, volatile is guaranteed visibility, ordering, and "partial" atomicity through the lock command. However, in most concurrency problems, it is necessary to ensure the atomicity of the operation, volatile
Loop structureThe loop structure is used when the same code or similar code needs to be executed repeatedly.Three elements of the loop:(1) Declaration of a cyclic variable: a cyclic factor used to control the number of cycles(2) Cyclic condition: a
Title, the sample code is as follows:/*** 1> by number of copies---list *@paramSource *@paramHow many copies num wants to divide into *@return */ Public Static list> Splitlistfornum (list source,intnum) {List> result=NewArraylist>();
1. Why Java EE is requiredThe JSP code we write, because of a large number of display code and business logic is confused, nested with each other, is not conducive to the maintenance and extension of the program. When business requirements change,
15.1 Dynamic agentsAfter learning the spring framework, the spring framework has one of the core ideas, AOP, (aspact-oriented-programming-oriented slicing) and the principle of AOP is the dynamic agent mechanism of Java, in the dynamic agent
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