Generics of Java Series

Since JDK 1.5 provides the concept of generics, generics allow developers to define safer types. Instead of having type conversion exceptions when enforcing a type conversion, you can use Object s to accomplish operations between different types of data without introspection. However, enforcing a type conversion (downward transition) can make e ...

Added by sheac on Sun, 09 Jun 2019 19:24:16 +0300

Interaction between Unity and Android

1. Goals     1) Unity3D Callable Android Java Function (in. jar) 2) Java callable unity3d function 3) Unity3D callable android C function (in. so) 2. Test environment     1) Unity5.0     2) JDK: jdk-8u25-windows-i586     3) Android SDK 4) Eclipse: adt-bundle-windows-x86 3. Creating Java Engineering Step 1:      Step 2: ...

Added by sheila on Fri, 07 Jun 2019 03:48:29 +0300

How does spring annotation @Aspect for spring source analysis work?

AOP (Aspect Orient Programming), Aspect Orient Programming, is a supplement to OOP. Object-oriented programming considers the structure of the program from a static point of view, and aspect-oriented programming considers the running process of the program from a dynamic point of view. AOP bottom layer is realized by dynamic proxy mode. There ...

Added by jgp4 on Tue, 04 Jun 2019 03:56:48 +0300

Implementing Simple IOC and AOP by Imitating Spring

1. Background When I was a senior intern, I began to contact with J2EE development work. I also came into contact with and studied Spring framework at the same time. It has been almost two years now. Nevertheless, Spring IOC and AOP have not been copied before, but they have a certain understanding of the principles of Spring IOC and AOP on the ...

Added by raymie7 on Sun, 02 Jun 2019 23:44:54 +0300

android shuts down the application completely

1. finish() method This method can end the current Activity, but if your App has a lot of activities, it's a bit stretched. In addition, there is a method called finishActivity (int request Code). For this method, first look at the api description of sdk. public void finishActivity (int requestCode)  Since: API Level 1  ...

Added by aaron_mason on Sun, 02 Jun 2019 00:00:27 +0300

Aliyun Server Builds tomcat Environment

Pre-installation preparation: First you need to install the Xshell, in order to facilitate operation, and then install Xftp. Xshell 5 Xftp 5: Some systems of servers open the firewall by default, and need to be shut down before accessing the 80, 443, 8080 ports of the local machine. If you're not sure if your server has a firewall on, foll ...

Added by Renegade85 on Sun, 26 May 2019 23:10:52 +0300

HashMap source shallow in deep out (2)

Short Book Pay Cat Please note the origin of the original, thank you! This series focuses on HashMap(1.8), records are also shared, welcome to discuss When we talked about hatred and love of the get method in the last book, we mainly introduced the basic structure of HashMap and how HashMap's hash values are calculated. These can lay a founda ...

Added by amclean on Sun, 26 May 2019 20:44:03 +0300

Multithreaded Programming Learning Four (Use of Lock)

1. Preface This paper introduces the use of Lock object in Java5, which can also achieve synchronization effect, and is more convenient and flexible to use, mainly including the use of ReentrantLock class and the use of ReentrantReadWriteLock class. 2. Using the ReentrantLock class 1. In java multi-threading, synchronized keywords can be use ...

Added by phithe on Sat, 25 May 2019 19:22:03 +0300

Deep Understanding of Java Type Information (Class Objects) and Reflection Mechanism

Related articles: Deep Understanding of Java Type Information (Class Objects) and Reflection Mechanism Deep Understanding of Java Enumeration Types (enum) Deep understanding of Java annotation types (@Annotation) Understanding the synchronized implementation principle of Java concurrency Deep understanding of Java Memory Model (JMM) and vo ...

Added by Goafer on Fri, 24 May 2019 00:51:07 +0300

Overview of Java Dynamic Agents

1. What is an agent? The classical meaning is sales agent, which, on the basis of signing a contract, sells certain products or all products for the principal (manufacturer), and has full authority over the price, terms and other transaction conditions.When we buy products from a sales agent, we usually don't know who the client (manufacturer) ...

Added by waynem801 on Thu, 23 May 2019 20:08:53 +0300