1. TCP/IP protocol modelApplication layer: Application;Transport layer: The data socket port, providing end-to-end communication services;Network Interconnection layer: Responsible for data packaging, addressing and routing, but also includes
1. InheritanceWhen object A is a special case of object B, it is said that object a Inherits object B. For example, black and white is a special case of television, and color television is another special case of television. If the black and white
Everyone in the study of Java, the collection framework has a lot of classes, when idle, I tidied up a bit, draw the following 2 diagram. The yellow represents the interface, the green is the abstract class, the blue concrete class. All of the
Three basic features of object-oriented programs: inheritance, encapsulation, polymorphism
Encapsulation: Classes contain data and methods, and putting data and methods in one class constitutes the encapsulation
How do I define a class?The
If a class contains properties and methods, each object of that class has its own properties, but no matter how many objects a class has, the objects share the same method
Summary of method parameter passing: For method parameter parameter
What is the difference between a value type and a reference type in Java?The [definition] Reference type indicates that the data you are manipulating is the same, that is, when you pass a parameter to another method, you change the value of the
1.ArrayList
An index sequence that can be dynamically grown and scaled down: slower speeds are suitable for not modifying too many elements
The array used
2.LinkEdList
An ordered sequence of efficient insert and delete
First, the statement 1.1. Conditional Statement 1.1.1 If statement 1.1.2 Branch Statement (switch statement) 1.2. Loop statement 1.2.1 For Loop statement Learn to draw memory analysis diagram analysis of other people write the program,
The projects that have worked so long have always been interspersed with C # and JavaFeel that you are not a Java developer, hehe, perfectionism psychosis again broke outAlthough the technology is not pressure, but can not play the pure charm of
The runnable interface should be implemented by classes that intend to execute their instances through a thread. The class must define a parameterless method named Run (). void Run ().In addition, Runnable provides an activation method for
Recently done project, found to modify the parameter content of request. Because you want to inject in the parammap of request, modifier and modifiername, these things. However, this map cannot be modified. Therefore, the following methods are used:
Public classTool { Public voidA ()///Method A{System.out.print ("Tool.a () ..."); } Public voidB ()//Method B{System.out.print ("Tool.b () ..."); } } Public classControl { Public voidInvokeintflag) {User User=NewUser (); Try {
The procedure for the lottery system is as follows:1 ImportJava.util.HashSet;2 ImportJava.util.Iterator;3 ImportJava.util.Random;4 ImportJava.util.Scanner;5 6 Public classChoujiang {7 PrivateHashsetset;8 PrivateRandom Rand;9
Given A string s consists of upper/lower-case alphabets and empty space characters ‘ ‘ , return the length of LA St Word in the string.If the last word does not exist, return 0.Note:a word is defined as A character sequence consists for non-space
Java Memory Model and garbage collection, java model garbage collection
1. Java Memory Model
When executing a program, the Java Virtual Machine divides the memory it manages into several data regions. The distribution of these data regions is shown
Access servlet API in struts2, struts2servlet
The Action in Struts2 is not coupled with any Servlet API, but it is almost impossible for the WEB application controller to access the Servlet API, such as tracking the HTTP Session status. The
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