java learning notes

Data type conversion:      Small Data Types - ----> Large Data Types - Automatic Type Conversion      Large Data Types - -- - > Small Data Types -- Forced Type Conversion Mandatory type conversion format:              Small Data Type Vari ...

Posted on Tue, 13 Aug 2019 22:35:57 -0700 by mzanimephp

An article teaches you how to insert stubs during Android compilation so that programs can learn to write their own code.

Preface In recent years, compile-time piling technology has become more and more popular in Android circle. Whether it's ButterKnief, Dagger, VirtualAPK that can generate JAVA source code, or even Kotlin, a new language, all use compile-time pil ...

Posted on Tue, 13 Aug 2019 20:30:03 -0700 by shikhartandon

Java implements dynamic arrays of data structures

array Array is a kind of data structure that comes into contact with first when learning programming language. This chapter realizes dynamic array based on Java static array and makes simple complexity analysis. public class Array<E> { private int size; private Object[] data; public Array(int capacity) { size ...

Posted on Tue, 13 Aug 2019 06:37:26 -0700 by zippee

PullConsumer Message Pull Source Analysis in RocketMQ

RocketMQ provides many API s for pulling messages in PullConsumer, but in general there are two kinds: synchronous and asynchronous message pulling. Synchronized message pull-outThe pullSyncImpl method of DefaultMQPullConsumerImpl is used to pull and cancel messages synchronously: 1 private PullResult pullSyncImpl(MessageQueue mq, Subscrip ...

Posted on Tue, 13 Aug 2019 05:35:01 -0700 by ainoy31

A Preliminary Understanding of Spring Cloud

I. Basic Description of MicroService Reasons for MicroService Architecture: Solving the shortcomings of single application framework. Monolith framework: The project organization in which all code and functions are included in a WAR package is called Monolith. Disadvantages of Monolith framework: Compiling, deploying and testing are difficu ...

Posted on Tue, 13 Aug 2019 05:14:29 -0700 by fellixombc

File Transfer - JavaIO Stream

Preface Recently, I found that I am not proficient enough in IO flow, so I spent half a day systematically practicing my hand with a set of lessons in Mou class. The notes and codes are arranged as follows, which is also mixed with my own understan ...

Posted on Tue, 13 Aug 2019 05:08:17 -0700 by richinsc

Design Patterns: Five Realizations and Analysis of Singletons

Singleton pattern is the simplest creation pattern in design pattern. The usage scenarios generally include: tool class object, class with only one instance object in the system, creating frequently or time-consuming and frequently used objects, etc. For example, JDK's Runtime class is the starvation singleton mode, and Spring container managem ...

Posted on Tue, 13 Aug 2019 03:46:38 -0700 by changeback

[JVM] LXF Deep Understanding of JVM Theme (5-)

Links to the original text: https://blog.csdn.net/a724888/article/details/78404643 Articles Catalogue Deep Understanding of JVM Virtual Machine 5: Virtual Machine Bytecode Execution Engine I. The Essence of Method Call 2. Runtime stack f ...

Posted on Tue, 13 Aug 2019 02:32:49 -0700 by MrAdam

Java Shallow Cloning and Deep Cloning

Shallow cloning In shallow cloning, if the member variables of the prototype object are value types (basic data types such as int, double, byte, boolean, char), copy the data to the cloned object; if the member variables of the prototype object are reference types (complex data types such as classes, ...

Posted on Mon, 12 Aug 2019 23:21:13 -0700 by polybiosis

Dynamic Planning Written Test

Square walking There is an X*Y grid on which small groups can only go from the upper left corner to the lower right corner, and they can only go to the right or down.Please design an algorithm to calculate how many ways a small group will walk.Given two positive integers int x,int y, return the number ...

Posted on Mon, 12 Aug 2019 19:29:37 -0700 by aks.it