20165237 2017-2018-2 "Java Program Design" 2nd week study summary Textbook study summary1. The first character of an identifier cannot be a number.2. Identifiers cannot be keywords and cannot be true, FALSE, or null.3. The logical type of Boolean
Java NIO (New io) is an alternative IO API for Java (from Java 1.4), meaning alternative to the standardJava IO A nd java Networking API ' s. Java NIO offers a different of working with IO than the standard IO API ' s.Java Nio:channels and
This is the 4th chapter of Java data Structure and algorithm, from the beginning of this chapter we will understand the design and implementation of the stack, the following is the relevant knowledge points:
Abstract data types for stacks
Data types and various math class methods1 Public classHelloWorld {2 Public Static voidMain (String args[]) {3 //familiar with various data types, forcing type conversions to look at levels4 Final intvar = 100;5 intVarr
20165111 2017-2018-2 "Java program design" the first week to summarize the learning content of learning materialsThis chapter is mainly about the Java language and the preparatory knowledge of Java learning.
Features of Java
Simple
NO1:Lock interfaceNew Reentrantlock (); Lock.lock (); Try {}finally{ lock.unlock ();}No2:Do not say the process of acquiring a lock is written in a try block, because if an exception occurs while acquiring the lock (the implementation of the
System.getproperties (). List (System.out);If you want to get a property, such as a common "operating system"Then System.getproperty ("Os.name");The output is as followsJava.runtime.name=java (TM) SE runtime
Chapter 1th Java Introduction Java featuresSimpleObject orientedPlatform-IndependentMultithreading: Allows multiple tasks to be completed at the same timeDynamic: The basic component of a Java program is a class (some classes are written by
1 PackageTraining;2 3 //import Java.util.Calendar;4 ImportJava.util.Scanner;5 /**6 * Title: Enter a certain day of the year, judging the day is the first of the year? 7 * 1. Procedure analysis: Take March 5 as an example, should first add up the
BYTE, short, int, long, float, double, char, Boolean1) Four types of integers (byte, short, int, long): byte:8 bits, used to represent the smallest data units, such as data in files, -128~127 short:16 bits, rarely used, -32768 to 32767 int:32 bits,
20165324 "Java program design" the first week to summarize the learning contents of teaching Materials Chapter I: Getting Started with JavaKey one, write Java programs
The first step is to write the source file (Note: Java is strictly
Personally think first to know two points:1. The parent class of the exception is Throwable2. Errors, exceptions are divided into three categories, but only one of the procedures required to processNow write a small example:Requirements: Both sides
OverviewThere are 2 common ways to implement multithreading:1. Inheriting the thread class2. Implement the Runnable interfaceThis is commonly used because multithreading can also be achieved through the thread pool in the Juc (java.util.concurrent)
IntelliJ IDEA 2017 Chinese package and graphic tutorial, intellij2017I. Preparation
Download IntelliJ IDEA 2017 from the official website and install it.
Download the Chinese package (link: https://pan.baidu.com/s/1JkUibJtn2pJKgcZyU0tVmw password:
The return keyword in the exception handling mechanism.
In Java, note the following before executing the try-catch-finally statement:
First, the return statement is not the final exit of the function. If there is a finally statement, it will
Analysis of Java random number and timer, analysis of java Random Number
Generate a repeated random number of 90:
Public class RandomTest {public static void main (String [] args) {/** Math. the random () method defaults to the double type, so it
SpringBoot background implements file upload and download, and springboot File Upload
How does the SpringBoot background upload and download files?
A recent project involves file upload and download. The front-end upload adopts the Baidu webUploader
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