Two modes of communication, TCP/UDPTCP to have a server-side socket, ServerSocket, the client can connect with the socket, and then communicate with each other according to the protocol. No open/start. But close.Communication is
Age-considered input needs to be judged by the introduction of:Packaging:Definition: Hide the properties of things and the details of implementation, only provide public methods to operate.Private keyword:Access modifiers, which can modify member
The previous article about the Lock,lock under the concurrent package can better solve the thread synchronization problem, make it more object-oriented, and readwritelock in the process of synchronization is more powerful, then the same, the thread
What is threadlocal? In fact, Threadlocal is not a local implementation version of a thread, it is not a threaded, but a threadlocalvariable (thread local variable). Perhaps it would be more appropriate to name it Threadlocalvar. The thread local
The wrapper class is used in the collection to define the type of the collection element.1. Minimum value of Integer.MIN_VALUE:int type: -2^312. Maximum value of Integer.MAX_VALUE:int type: 2^31-13, int integer.parseint (String sinteger);Effect:
"List Interface" Note: list is very similar to an array, but it can arbitrarily change the size. arraylist The underlying implementation is an array, linkedlist the underlying implementation is a linked list. "Common Methods" "Program
Basic data type Object wrapper classAccording to the Java object-oriented principle, everything is an object, which includes the basic data types.BYTE byteShort ShortInteger intLong LongBoolean Booleanfloat floatDouble DoubleCharacter CharNext, take
Two evaluation indicators for the algorithm: run time and memory consumptionEither use time to change space, or use space to change timeLook for an array of identical elements to test one:0~99 a total of 100 elements are different, the newly added
Java cannot find the main class solutionIf the Java class has a package name, you must build the appropriate package folder and compile or copy the file to the appropriate folder;As follows:1. source file: E:\test\src\test\hello.java2. Compile:
The topics are as follows:The 19-letter sequence of ABCD...S is repeated 106 times to get a string of length 2014.Next, delete the 1th letter (the first letter a), and the 3rd, 5th, and all odd-numbered positions.Get the new string and then delete
1 coverageAn instance method can overwrite all instance methods with the same signature that can be accessed in its superclass, enabling the use of dynamic allocation mechanisms. In other words, the VM chooses the replication method to invoke based
Abstract class is a class containing abstract methods, abstract classes can contain non-abstract methods, but the abstract method must be defined in the abstract class, abstract classes cannot be instantiated, abstract classes in the abstract method
the final keyword123, the final member variable represents a constant, can only be assigned once, and the value will no longer change after the value is assigned. (for const inC + +) 4, final cannot be used to decorate a construction method. "Why
The usual development is that we deploy the project through the IDE, but sometimes we have to deploy it manually (for example, on the server).Manual deployment is divided into the following steps:1th Step: use Maven to fight the war package (if the
1. Download the JDK, installOfficial website: http://java.sun.com/javase/downloads/index.jspAfter downloading, install, select the directory you want to install the JDK to:For example: JDK installation directory: E:\javaOther Boven said to install
Java web uses the mvc structure to implement simple chat room functions.
Simple chat rooms use various internal objects that are not applicable to databases.
The basic functions of a chat room are as follows:
1. log on to the chat room,
2. User
Servlet to get the parameters in the configuration file. servlet configuration file
Web. xml (add init-param)
1 2 7 8 9 This is the description of my J2EE component10 This is the display name of my J2EE component11
Spring extension points
Spring extension points
In the previous article, we introduced bean lifecycle in spring, and mentioned at the end that spring uses the BeanPostProcessor interface to process lifecycle callbacks. We can customize some logic in
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