Example 1public class operatedemo01{public static void Main (String args[]) {int num = 22;SYSTEM.OUT.PRINTLN ("first output: num =" + num);num = num-3;//Modify variable ContentsSystem.out.println ("second output: num =" + num);}};Operation
Today, I encountered java.lang.IllegalStateException:Optional int parameter ' ID ' is not present exception on the tomcat+spring MVC platform server, it's weird, MVC The ID of the method is int type, obviously has the value, why say no? Instead of
1. Java identifier:Naming rules:① can consist of numbers, letters, underscores, dollar signs, but cannot start with a number.② are case-sensitive.③ cannot be a keyword and a reserved word in Java.Naming conventions:Package name All word letters are
I. Introduction to the enjoy meta-modeIf you have many identical or similar objects, you can save memory by using the enjoy meta mode.Two. Key pointsThe enjoy Meta object needs to differentiate between internal and external states.Internal state:
Semaphore can control how many times a shared resource can be accessed concurrently, to maintain the number of threads currently accessing a shared resource, and to provide a synchronization mechanism. For example, control the number of concurrent
First, the demand(a) The connection of the switch is queried every five minutes;(b) The connection of each building is updated every 2.5 minutes.Second, function point
Serial number
Function Point Description
Pending
Java native methods and examples of JNI2. OverviewToday in the Java multithreaded programming, found that thread this class has a number of native methods, have never seen this method before, so for the more curious, look up some information, now
In the previous study (see the previous blog), we learned a lot of oo principles:
Package changes
Multi-use combination, less inheritance
Programming for interface/superclass, not for implementation
Loose coupling
Opening
on equals and = = in JavaWhen you are learning Java, you may often encounter the following code:1 New String ("Hello"); 2 New String ("Hello"); 3 4 System.out.println (str1==str2); 5 System.out.println (Str1.equals (str2));Why is the output
Synchronization Container class synchronization container class creationIn the early JDK, there are two kinds of ready-made implementations, vectors and Hashtable, which can be obtained directly from the new object;In JDK1.2, the synchronous
Implementing Java to Excel file encryption with Poi-3.6-20091214.jarI used a lot of methods on the Internet, but did not succeed!Hssfworkbook wb = new Hssfworkbook (new FileInputStream (file));Set Password protection ·Wb.writeprotectworkbook ("111111
Java multithreading SummaryJava multithreading Summary: A process refers to an application running in memory. Each process has its own independent memory space. A thread refers to an execution process in the process, A process can start multiple
Factory mode, factory mode java
Factory model classification
Simple factory ModeIs the Creation Mode of the class, also known as the static factory method mode. In simple factory mode, a factory class determines which product class to create
IDE introduction and simple use of Eclipse, ide introduction eclipse
I. IDE Introduction
① What is IDE?
1. The full name of IDE is "Integrated Development Environment ";
2. It is an application used to provide a development environment. It generally
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