1. Summary of this week's study2. Written work1.ArrayList Code Analysis1.1 Explaining ArrayList's contains source codeThe following is the contains source code for ArrayList: Public boolean contains (Object o) { return indexOf (o) >= 0; } public
Brief talk on the simple application of arrays in Java--------------------ideas and developmentKnown an array, below we do three things1. Print an array of all elements2, the value of the and3, ask a number is 3440 in this array exists?1
Bubble Sort ( English:Bubble sort) is a simple sort algorithm. It repeatedly visited the sequence to sort, comparing two elements at a time, and swapping them out if they were wrong in the order. The work of the sequence of visits is repeated until
The Java language Specification does not explicitly describe which garbage collection algorithm the JVM uses, but any garbage collection algorithm typically does 2 basic things:(1) Finding useless information objects;(2) Reclaim the memory space
1.1.the nature of parameterized typesJava parameterized types are fundamentally different from the parameterized types of C + + . The former is only a means of compiler type checking, while the latter is really a new type that is detrimental to the
Ubuntu installs the JDK in two ways:1: Installed via PPA (source) mode.2: Download the installation package from the official website.The 1th type is recommended because the JDK upgrade can be facilitated by Apt-get upgrade wayInstall using
1.1.responsibilities of the class loadereach class (Class) has a class loader. The duties of the ClassLoader ClassLoader include the following:(1) the positioning of the class. Depending on the class name , you can find the corresponding class
15. What are the results of the following program execution? Bint i = 100;while (true){if (i++ > 100){Break}System.out.println (i);}A. 100B. 101C. 102D. ErrorAnalysis: The trap of this problem is if (i++>100), we usually always if (i>100), but there
Write in frontException handling is a common process in code, in this paper, according to Sonarqube in the exception of the rules and common check results, select the common exception handling of the technical debt, promote the least technical debt
All data types are listed here first:(1) Integral type: Byte,short,int, long(2) floating-point type: float,double(3) Character type: Char(4) String type: string (Note that string is not part of the base data type)(5) Boolean type: BooleanThe above
Java generics (generics) is a new feature introduced in JDK 5, which provides a compile-time type-safe detection mechanism that allows programmers to detect illegal types at compile time.The essence of a generic is a parameterized type, which means
Class and usage in Java
Java program at runtime, the Java runtime System has been all the objects of the so-called run-time type identification, known as the Rtti. This information records the classes each object belongs to. A virtual
Tomcat needs to work with the Java environment, so we need to install Java first (I'm using the java1.7.0 version here)First, preparation: Download java1.7.0 compressed PackageHttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-213
Chapter 7 categories and objects and Chapter 7 Objects
1. java is an Object-Oriented programming language (OOP ).
2. The advantages of OPP are:
So that people's programming is closer to the real world. All objects are Assigned attributes and methods,
Operators, expressions, and operator expressions
Operator
An operator is a symbol used to perform operations on an operand. Operators in java can be divided into Arithmetic Operators, Relational operators, logical operators, value assignment
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