Ah ah ah, I'm so lazy, I'm too lazy to write a title... Direct code for your reference, you can go to the Blue Bridge Cup official website exercise system to find a topic. If someone really sees it, I will post the title 233333 (:)________________
BASIC-1 Leap Year Judgment
import java.m ...
Posted on Mon, 25 Mar 2019 23:48:27 -0700 by invinate
For Java Socket programming, there are two concepts: Server Socket and Socket. The connection between the server and the client is established through Socket, and then they can communicate. First, Server Socket will listen to a port on the server side. When it finds that the client has a Socket to try to connect to it, it accept s the Socket co ...
Posted on Mon, 25 Mar 2019 21:54:28 -0700 by shseraj
Object creation is the most basic action in object-oriented programming, but there are many ways to create objects, but in the final analysis, it is directly or indirectly to use class constructors to create instances, including static factory method, JavaBean method or the following constructor pattern. However, in different cases, using thes ...
Posted on Mon, 25 Mar 2019 20:36:29 -0700 by hehachris
What's the difference between HashMap and HashTable? In the process of interview and interview, I have asked and asked this question, and I have seen many answers. Today I decided to write my ideal answer.
Every version of JDK is improving. The HashMap and HashTable discussed in this article are based on JDK 1.7.0_67. See ...
Posted on Mon, 25 Mar 2019 17:30:28 -0700 by kasitzboym
First: Query Framework Process (Architecture)
In order to achieve the efficiency of query code reuse, we need to write an abstract class BaseQuery for all queries. Therefore, when we receive the query condition data of the page in the future, it will be transmitted in the format of BaseQuery. action will be transferred to the serrvice layer i ...
Posted on Mon, 25 Mar 2019 17:27:27 -0700 by weknowtheworld
This article is from: https://examples.javacodegeeks.com/enterprise-java/apache-hadoop/apache-hadoop-distcp-example/
In this example, we will show you how to use distributed replication tools to replicate large files in Hadoop's cluster/cluster settings.
DistCP is the abbreviation of Distributed Copy in the context of Apache ...
Posted on Mon, 25 Mar 2019 16:39:28 -0700 by trixiesirisheyes
1 IPC means inter-process communication or cross-process communication
Threads are the smallest unit of CPU scheduling. Threads are also a limited system resource.
Processes generally refer to an execution unit, a program or an application on a PC or mobile device.
A process can have many threads, but only one thread is the main thread, ...
Posted on Mon, 25 Mar 2019 16:03:29 -0700 by doobster
The role of class loaders
Classloader is used to load Java classes into Java virtual machines. It enables Java classes to be dynamically loaded into the Java virtual machine and executed.
Classification of Class Loaders
Class loaders are classified into two categories: bootstrap class loader for loading JAVA core components and u ...
Posted on Mon, 25 Mar 2019 13:18:29 -0700 by Domestics
If we calculate an expression, such as 4+5+6*2, the simple four-function calculator is 30 with different calculators. Many scientific calculators know that multiplication has higher priority than addition, so the scientific answer is 21. Typical calculation order can be 4+5, stored as temporary variable a, 6*2 and B. Finally, the final result c ...
Posted on Mon, 25 Mar 2019 12:51:27 -0700 by lifeson2112
In AS, with the help of the Proguard tool that comes with SDK, to open obfuscation, you need only add the following two lines of code in the release closure:
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
Minify En ...
Posted on Mon, 25 Mar 2019 11:51:28 -0700 by biopv