files, pictures, HTML files, compressed files and so on.Finally, for serialization, in addition to introducing the default serialization mechanism for Java, we also introduce XML, JSON, and Messagepack.SummaryThis section describes some of the basic concepts and common sense of files, the basic thinking and class structure of working with files in Java, and finally we summarize the following chapters to ar
Thinking logic of computer programs (14), thinking Logic
It is said that Tao shengyi has a second, second, and third life. If binary representation and operation are regarded as one, the basic data type is regarded as two, and the basic data type is regarded as three, then, the combination of classes and the inheritanc
The previous section describes the wrapper class character for a single character, and this section describes the string class. String manipulation is probably the most common operation in a computer program, and the class that represents the string in Java is string, and this section describes string in detail.The basic use of strings is simpler and more straightforward, let's take a look.Basic usageYou ca
enumeration types are more concise, secure, and convenient.We've mentioned anomalies before, but we haven't discussed them in depth, let's discuss them in the next section.----------------To be continued, check out the latest articles, please pay attention to the public number "old Horse Programming" (Scan the QR code below), from the introduction to advanced, in layman's words, Lao Ma and you explore the nature of Java programming and computer techn
Features in Java, including reflection, annotation, dynamic proxy, and Class Loader. As an application programmer, most of them are used less often, most of the annotations provided by frameworks and libraries are used, but these features are widely used in various system programs, frameworks, and libraries, understanding these features can help us better understand them and achieve dynamic, universal, and flexible functions as needed.
In the annotat
Thinking logic of computer programs (51) and thinking 51
The previous section describes EnumMap. This section also describes the implementation class EnumSet for the Set interface of the enumeration type. Similar to EnumMap, there is a special implementation class for enumeration types, mainly because it can implement the Set interface very efficiently.
The implementation class HashSet/TreeSet of the Set in
Thinking logic of computer programs (67) and thinking 67
The previous section introduced the problem of competing multiple threads to access the same resource and the solution synchronized. we mentioned that in addition to competition among multiple threads, mutual collaboration is often required, this section describes the basic mechanism of multi-thread collabo
vain. So here are some tips for beginners if the computer doesn't respond when you're doing something important, do not go to the mouse, try to close the window, because the program has no response has been explained that the computer's internal program is not smooth, and then to point the mouse is equivalent to increase the burden of the computer, is tantamount to worse, you say no response to the program
Thinking logic of computer programs (64) and thinking 64
For file processing, we introduced the stream method, section 57 introduced the byte stream, section 58 introduced the ghost stream, and also introduced the underlying file operation method, section 60 describes random read/write files, Section 61 Describes memory ing files, Object serialization/deserialization mechanisms, and section 62 describes Jav
Thinking logic of computer programs (94) and thinking 94
The previous two sections discussed functional data processing in Java 8, which is an enhancement to the container class introduced in sections 38 to 55, it can combine multiple operations on the set data in a pipeline. This section continues to discuss the new features of Java 8, mainly a new class CompletableFuture, which is an enhancement to concur
Part 8: bios and CMOS FAQs When it comes to bios, most cainiao don't know much about it and dare not try it easily, as if they are naturally afraid of the blue screen, even many old birds cannot distinguish BIOS settings from CMOS settings. Therefore, before writing a Q A question, I think it is necessary to clarify these two concepts to get twice the result with half the effort.BIOS is short for Basic Input/Output System. It is originally intended
Thinking logic of computer programs (91) and thinking 91
In the previous sections, we have discussed Java 7. From this section, we will discuss some features of Java 8, including:
Passing behavior code-Lambda expressions
Function-based data processing-stream
Combined asynchronous programming-CompletableFuture
New Date and Time API
In this section, we will first discuss Lambda expressions.
Thinking logic of computer programs (60) and thinking Logic
Section 57 introduces byte streams, and section 58 introduces byte streams. They all read and write files in the stream mode. There are several restrictions on the stream mode:
Either read or write, not both read and write
Random read/write is not allowed. It can only be read from the beginning and end, and cannot be read repeatedly. Although pa
Thinking logic of computer programs (66) and thinking 66
We mentioned two problems of multi-thread shared memory in the previous section. One is the race condition and the other is the memory visibility. we mentioned that one solution to these two problems is to use the synchronized keyword, this topic describes this keyword.
Usage
Synchronized can be used to modify the instance method, static method, and c
is Q:SICP about software engineering?A: part, but not all. Mainly is the modularization and the black box abstraction, two main basic ideas in the computer. SICP is concerned with: "When the complexity of the system explodes (or before), how can we control the complexity of the system through effective methods and means?" ” Q:SICP, is it about compiling principles?A: In part, and, as the title says, "comp
Thinking logic of computer programs (36) and thinking 36
In the previous section, we introduced the basic concepts and principles of generics. In this section, we will continue to discuss generics and the wildcard concepts in generics. Wildcards have confusing and confusing syntaxes, but they are widely used in Java container classes.
Construction and interpretation of computer programs (2nd)
[Original title] structure and interpretation of computer programs, Second Edition[Original Publishing House] mascript usetts Institute of Technology【Author】 Harold Abelson, Gerald Jay Sussman, Julie SussmanQiu zongyan[Series name]
Thinking logic of computer programs (73) and thinking 73
In this section and the following sections, we will discuss the container classes in Java and package. This section describes two simple classes, CopyOnWriteArrayList and CopyOnWriteArraySet, and discusses their usage and implementation principles. Their usage is relatively simple. What we need to understan
Thinking logic of computer programs (3), thinking Logic
Operation
The first section describes how to define data through variables. The last section describes how to assign values to data. With an initial value, you can perform operations on the data. A computer is called a "computing" machine because it is invented for computation. There are different types of o
previous introduction is the flow, in addition to the flow, there are other ways of operation, such as random access and memory-mapped files, why do you need these methods? What are their characteristics? For what occasion? Let's move on to the next exploration.----------------To be continued, check out the latest articles, please pay attention to the public number "old Horse Programming" (Scan the QR code
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.