Groovy Grammar Foundation

Introduction to Groovy Groovy is a dynamic language based on JVM. Its grammar is similar to Java and ultimately compiles. class to run on JVM. Groovy is fully compatible with Java and adds many dynamic types and flexible features, such as closure support and DSL support. Groovy is a very flexible dynamic scripting language. The purpose of this ...

Posted on Sun, 18 Aug 2019 06:42:23 -0700 by raydar2000

Aviator expression evaluation engine

Application Scenarios Requirements: User portfolio system functions formulate formulas, code calls calculation. Solution: Originally intended to use java to write a compiler, but the work is more difficult. Search the web for other solutions, Aviat ...

Posted on Thu, 15 Aug 2019 20:20:59 -0700 by simoesp

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

Magic in Java - Unsafe

Unsafe is a class located under the sun.misc package. It mainly provides some methods to perform low-level, unsafe operations, such as direct access to system memory resources, self-management of memory resources, and so on. These methods have played a significant role in improving Java efficiency and enhancing the operation capabilities of Jav ...

Posted on Sat, 10 Aug 2019 23:44:40 -0700 by Simmo

Java Foundation 18: Java Serialization and Deserialization

Copyright Statement: This article is the original article of the blogger. It can not be reproduced without the permission of the blogger. https://blog.csdn.net/a724888/article/details/80210095 Wechat Public [Java Technology Jianghu], a technology station for an Ali Java engineer. Respond to "Java" after payi ...

Posted on Thu, 08 Aug 2019 19:45:51 -0700 by spheonix

volatile keyword for java multithreaded summary-synchronization

Article Directory Memory Visibility of a Case Variable Atomicity of variables in two cases Memory Visibility of a Case Variable Code parsing: A new sub-thread executes the m() method, and after one second the main thread sets B to false. Will the sub-thread stop executing the dead-loop while(b){ ...

Posted on Thu, 08 Aug 2019 18:30:20 -0700 by Erkilite

Start Load Initialization Process of Spring Bean Container

1. DESC Spring's handling of beanFactory 2. CODE public void refresh() throws BeansException, IllegalStateException { synchronized (this.startupShutdownMonitor) { // Prepare this context for refreshing. prepareRefresh(); // Tell the subclass to refresh the internal bean factory. ConfigurableListableBeanFactor ...

Posted on Thu, 08 Aug 2019 04:55:50 -0700 by Tjorriemorrie

Summary of Simple Design Patterns

1. Design Patterns 1. Single case 1. Role Singleton mode can save objects for a long time. Singletons can transfer values: they can transfer values without any relationship between two objects, which reduces coupling and improves cohesion. Note: Static methods are acquired through class calls, ...

Posted on Wed, 07 Aug 2019 03:00:23 -0700 by Panthers

Comments under Java/Android

Links to the original text: https://www.jianshu.com/p/8b4f801bff10 What is annotation? java.lang.annotation, interface Annotation, introduced in JDK 5.0 and later versions. Annotations are special tags in code that can be read at compi ...

Posted on Tue, 06 Aug 2019 03:38:41 -0700 by mikeglaz