I. INPUT and OUTPUT statements
Console.ReadLine (); Waits until the user presses enter and reads one line at a timeConsole.readkey (); is to wait for the user to press any key and read one character at a time.
Ii. Types of data
Main Master:
1. Value type: int integer, float floating-point type (single precision), double double-precision, char character, BOOL Boolean (two states True and false), DateTime date Time
2. Reference type: string String type
Problem?
A. The difference between a s
to take away, later people save their own things, leaving the time to take away, the variables as the locker, each time the storage of things, the front of the things will be taken away, will only leave their own things, so every assignment, The variable uses the current data without using the original data.
age=10; age is assigned a value of 10 at this time.
10 of the age=12;age is emptied, at which time the value of age is 12;
12 of the Age=15;age is emptied, at which time the value of age is
memory space is less efficient than continuous space.
Because the non-contiguous memory space is inefficient, in order to solve this problem, then think: A new workspace, the object can be copied to the new memory space, to ensure the continuity of space use.
2.3 Replication Algorithm "Cenozoic algorithm"
2.3.1 thought: The original memory space is divided into two pieces, each using one piece. During garbage collection, the objects in memory that are in use are copied into unused memory b
enter the synchronized method or block of code until the lock is freed.A release lock is a lock thread that exits the synchronized synchronization method or code block. 3: code example
Talk is Cheap,just show me the code. (code example)
Sample requirements:A bank card account has $500 in cash. One person takes the passbook to fetch the money, while another person takes the card to the ATM to withdraw money, each take the money 400 yuan.There is no re
many garbage objects in the system, the number of surviving objects that the replication algorithm needs to replicate is not too large. As a result, the efficiency of the replication algorithm is high at a time when garbage collection is really needed. And because objects are uniformly copied to the new memory space during garbage collection, you can ensure that the reclaimed memory space is not fragmented. The disadvantage of this algorithm is to put the p
lost, the bank will face irreparable losses. To prevent this from happening, the business primary key needs to be redundant in important tables, and the best way to handle this is to use the business primary key directly. such as * * * number, passbook number, card number and so on. So usually the banking system requires the use of a business primary key, which is not due to performance considerations but for security reasons.Summary of--switchblade
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.