One, as a switch
A. Atomicboolean
Private Atomicboolean update = new Atomicboolean (false);
public void init ()
{
if (This.update.compareAndSet (False, True))
{
try{
//Do some thing
}
finally{
This.refresh.set (false)
1. Basic grammar:
2, macro use
3, the use of macro nesting nestedTemplate page:
${title}
To call a template's page:
hahaha
Test jquery
4, nested instructions1) Nested
Exercise 1,
Each student has a corresponding place of attribution, student student, address string type
Student attributes: Name and age
Note: The name and age are the same for the same student, ensuring the uniqueness of the students
Import
I've seen a lot of things on the internet, and it's really hard to find something about Java software Architecture, but the architecture of software development is basically the same. So, I looked up a lot of other languages on the internet about
Java memory modelProgram counterSmall memory space in memory, the value of the counter can choose the next execution of bytecode instructions, branch, loop, jump, exception handling, thread recovery and other basic functions need to rely on this
Java's JVM memory can be divided into 3 zones: heap, stack (stack), and method area
Stack area:
Each thread contains a stack that stores only the underlying data types and custom object references (not objects)in the method (not
Today learned a bit of spring boot in the MyBatis, with MyBatis to add and remove users, access to users, adding users, modify users, delete users, modify the user, are all right, but get a list of users with pagination, Always throw this
Java10-java grammatical Basis (ix)--java encapsulationFirst, the three main features of Java: Encapsulation, polymorphism, inheritanceEncapsulation: Encapsulates the data members and member methods of an object through a class, guaranteeing that
Define a class Visibility1 contains two variablespublic class Visibility1 { public static Boolean ready; public static int number;}Customize a thread class to enter a loop when the Ready property in Visibility1 is Falsepublic class
features of the 1.java language 1. Object-oriented: Basic concepts (classes, objects )Three major features: encapsulation, inheritance, polymorphism2. Robustness3. Cross-platform: Applications written in the Java language can be run on different
A queue is a type of data structure that is FIFO, LIFO, and backwardSingle queue: Remove elements from the front, insert elements from behind, and be in line with realityHere we use the pointer to move the position of the method. Because arrays
Review the knowledge that is encountered in the process of basic knowledge and needs to be recorded.PackagingWe design the class should be as high as possible cohesion, reflected in the degree of encapsulation. A class attribute should only be
After learning the basics of Java, I practiced using MySQL as a simple user management system for data storage, this is a management system without interface, it looks more boring, first give a few bar.Let's start by previewing the package structure.
Previous--chapter1:1, Java language overviewDownload Install JDK
Download JDK link from Oracle website
After the download is complete run the installation JDK, the personal likes installs under the D disk;
JDK Installation
Java Memorabilia
1990, Sun company James Gosling led the "Green" plan to develop new language--oak;
1994, the first Java Web browser: Webrunner,oak renamed Java;
1995, Sun Company officially released the Java language;
In 1996,
Turn from 5935528 Objects in 1.Java are allocated in the heap. allocating memory from the heap consumes much more time than it takes to generate storage space from the stack. (1) Each application runs with its own memory space for storing temporary
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