Introduction
Third Day card ...
Today the main read the knowledge of the Java container, very tired but very substantial. Eat two chickens, take a break and fight again.Begin
A collection of-collection storage objects; Map table for storing
Introduction
Drip, the next day card.
Five, key words
-static-Initialization order-Static variables and static statement blocks take precedence over instance variables and normal statement blocks, and the order in which static variables and
Unit Test1. IntroductionIn everyday development, any code that we write requires rigorous testing before it can be published. The previous test method is to write a main function for a simple test, and use a large number of print statements output
The Java.util package is called the Java Toolkit, which contains most of the tool classesStochastic random number classNew Random ()Rd.nextint ()Rd.nextint (100)Scanner Scanner classScanner sc = new Scanner (system.in);String str = Sc.next ();String
The class in the Java.lang package is not required for import Wrapper classes for basic data types There is little difference in the use of packaging class, the use of the method is an integer example Property:Max_value Maximum ValueMin_value
Set Set1. OverviewCollectionList collection: Sequential (consistent in order of storage and extraction), repeatable.Set set: unordered (storage order and check out inconsistencies), unique2.HashSet(1). Overview: HashSet does not guarantee the set
This script is used to start and restart the Javaweb program@echo Offrem Configure port number set port=8080REM First-layer loop check Port-occupied PID for/F"tokens=5"%%ainch('Netstat-ano ^| Find ":%port%"') Do(REM second loop gets PID
IntroductionThird Day card ...Today the main read the knowledge of the Java container, very tired but very substantial. Eat two chickens, take a break and fight again.BeginA collection of-collection storage objects; Map table for storing key-value
Commons-ioImport ClasspathThe class file in the third-party jaR package that is added to Classpath can be used in the project1. Create a Lib folder2. Copy the Commons-io.jar to the Lib folder3. Right-click Commons-io.jar,build path→add to Build
About common methods in the map collection:void Clear (); Clear MapBoolean ContainsKey (Object key); Determine if the map contains such a keyBoolean Containsvalue (Object value); Determine if the map contains such valueSet> EntrySet (); Returns a
List CollectionFeatures of the 1.list collectionThe elements in the list collection are ordered (the elements that are stored and taken are consistent, that is, what elements you used to store them, whether you use them to output later or the same),
A collection can be thought of as a container, for example, all Java-related books can be considered as a collection. It is easy to store the objects in the collection in the collection, and it is easy to remove them from the collection, and they
Interface:annotatedelement* Represents an annotated element of the program currently running in this * VM. This interface allows annotations to be read reflectively. All * Annotations returned by methods in this interface is immutable and *
1. Use new to create objects, allocate object space in heap memory, initialize;2. Define a local variable in the method stack and eat a reference to the object in the heap memory;3. The method executes the return, the stack memory is freed
JAVA ConcurrentThis article mainly explains the Java concurrency related content, including the lock, the semaphore, the blocking queue, the thread pool and so on main content.Advantages and disadvantages of concurrencyIn the case of how to use
Polymorphic1. Overview of polymorphismThe same object (transaction), which manifests itself in different states at different times.Examples of Use:Pig: It's an animal, it belongs to a mammal.2. Conditions for polymorphism(1). To have an inherited
Multithreading in JavaThe concept of multithreading in Java has always been complex, general and abstract. The real world only after the knowledge point abstraction can effectively spread, but in the process of communication, only the abstract
the first method overrides and method overloads are based on the Java object-oriented inheritance and polymorphism characteristics. As for object-oriented inheritance and polymorphism, I'm not here to say more. Inheritance refers to the creation of
What are the main methods of 46.Request objects?A: (1) setAttribute (String name,object): Sets the parameter value of the request named name(2) getattribute (String name): Returns the property value specified by name(3) Getattributenames (): Returns
Vector class is the implementation of the list interface, so the method of inheritance is not here to sayHttps://www.cnblogs.com/xiaostudy/p/9503199.htmlPublic void add(int index, E Element)The element element is added from the position of the index,
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