Structure of JAVA Byte Code File

Development Tools: IEDA, JDK1.8, WinHex 1. Byte code file structure source code package com.jalja.java.bytecode; /** * @Auther: XL * @Date: 2020/1/4 12:58 * @Description: */ public class BytecodeTest { private int num=1; public int getNum() { return num; } public void setNum(int num) { this.num = num; ...

Posted by Killswitch on Sun, 05 Jan 2020 09:50:38 -0800

Automatic construction of Gradle (I) Groovy

Official website: http://groovy-lang.org/ DSL: domain specific language Groovy is a branch of DSL, others are like uml sml xml html Features: solve the problems in a specific field, compile the fields not involved in the language, combine the compiled language, and improve the development of the project Groovy : It i ...

Posted by JUMC_Webmaster on Sun, 05 Jan 2020 08:24:21 -0800

android hot update (no framework)

I. Preface Recently, I saw the andix hot fix framework of Alibaba, but it seems that it can't support all devices. So, I need to manually implement Android hot fix once, and find out how to achieve it. Two, principle When Java's virtual machine JVM runs the code, it loads the. Class bytecode file, while Android's Dalvik/ART ...

Posted by baselineace on Sat, 04 Jan 2020 11:58:13 -0800

Arthas practice - how to quickly troubleshoot online problems

I will not repeat the installation of Arthas here, but I will use it directly Official website address: https://alibaba.github.io/arthas/ 1. View thread information thread View the current thread information and the thread stack Parameter description Parameter name Parameter description id Thread id [n:] ...

Posted by joel danny on Fri, 03 Jan 2020 02:05:41 -0800

Java self study - the difference between ArrayList and HashSet

The difference between Java ArrayList and HashSet Example 1: is there a sequence ArrayList: ordered HashSet: no order The specific order of hashsets is neither in the order of insertion nor in the order of hashcode. Here are some comments in the hasset source code /** * It makes no guarantees as to the iteration order of the set; * in particu ...

Posted by Traveller29 on Sat, 28 Dec 2019 07:05:23 -0800

Android event distribution mechanism - system default mechanism

1. Why do you want to understand the Android event mechanism? Background: when I was working on the Android project, I encountered a nested relationship like activity - > fragment - > Scrollview - > Button. When everything was ready, the system crashed when I clicked the Button after the program was started. Tencent B ...

Posted by Francois on Mon, 23 Dec 2019 11:17:02 -0800

Concurrency and Multithreading

Basic concepts Concurrency and Parallelism Concurrency: Two or more events occur at the same time interval.When multiple threads are operating, if the system has only one CPU, it is impossible for the system to actually run more than one thread at the same time. It can only divide the CPU run time into several time periods, then assign time pe ...

Posted by rekha on Sun, 22 Dec 2019 18:03:37 -0800

[LINUX]CentOS7 configure jdk environment

[LINUX]CentOS7 configure jdk environment Please support originality and identify DannisTang (tangweixuan1995@foxmail.com) If the Java environment is installed under linux, but the java file path is not specified in the configuration file, the installation directory cannot be found with echo. Please refer to another article o ...

Posted by Vizionz on Sun, 22 Dec 2019 14:57:38 -0800

Design pattern creation - singleton pattern

As a common design pattern, singleton pattern is not repeated here. There are nine ways to implement singleton mode, but some of them are defective. In summary, there are four types: 1, Starved Han model /** * @ClassName: Singleton2 * @description: Singleton mode - starved mode (thread safe, but not resource efficient) * @author: edison_Kwok ...

Posted by phpnewbie911 on Sun, 22 Dec 2019 06:11:59 -0800

Source code analysis Dubbo service consumer startup process

Through the detailed explanation of the previous article, we know that the Dubbo service consumer label dubbo:reference will eventually create a corresponding ReferenceBean instance in the Spring container, and ReferenceBean implements the Spring life cycle interface: InitializingBean. Next, we should look at the implementation of its afterprop ...

Posted by Fari on Sun, 22 Dec 2019 02:06:53 -0800