Java Multithreaded Programming Foundation 1 (Basic Thread Mechanism, Thread Scheduler, Thread State)

Article Citation 1 java programming ideas Chapter 21 Basic threading mechanism p653 2 http://www.jb51.net/article/105487.htm 3 https://zhidao.baidu.com/question/1542633956525518747.html 1. Basic threading mechanisms Concurrent programming allows us to say that programs are divided into separate, independen ...

Posted by jarow on Thu, 16 May 2019 08:40:46 +0200

Resolve slow start and connection timeout after Tomcat 8 or SpringBoot integration Tomcat 8 starts

After Tomcat 8 or SpringBook integration Tomcat 8 is started, the request connection has been timed out and there is no log output on the back end, as follows: 09:34:24.654 [main] INFO org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer - Tomcat started on port(s): 8888 (http) 09:34:24.658 [main] INFO com.wooooood ...

Posted by myflashstore on Tue, 14 May 2019 21:02:14 +0200

Java Initialization Basics

Preface Initialization in Java includes default initialization, static initialization block, initialization in common initialization blocks and construction methods. What is the final result of the execution of these initialization codes? For many Java developers, it is still confusing. Here, you can learn the loading basics o ...

Posted by ScoobyDooobyD00 on Tue, 14 May 2019 16:36:08 +0200

Analysis of Common Code Block, Construction Code Block and Static Code Block

After learning code blocks, building code blocks and static code blocks for the first time, I decided to write this article to summarize the learning results in particular. This article describes code blocks in the simplest language. If there are any errors, please ask the gods to point out, thank you very much (bow) Ordinary ...

Posted by artizan on Sun, 12 May 2019 05:06:56 +0200

Java String

Java String We know that Java's character channeling is Immutable, once created, it can't change its content; Usually we operate on strings most, in fact, the returned strings are all new string objects, which have not been changed, which is exactly the same as C. Since strings are invariable, the efficiency of various operations on strings mus ...

Posted by shneoh on Sun, 12 May 2019 00:13:53 +0200

Tamping Java Foundation-Reflection

A week has passed since the nested Fragment s lazily loaded articles. To tell the truth, lately there has been a slight decrease in enthusiasm for learning, or a slight drift of myself, or a slight increase in temptation in reality, but this is a bad state and you have to adjust yourself to keep moving towards your goals. Preface This a ...

Posted by digitalgod on Sat, 11 May 2019 18:47:44 +0200

Talk about Code Cache of jvm

order This paper mainly studies the Code Cache of jvm. Code Cache The memory space of native code generated by JVM is called Code Cache; JIT compilation, JNI and so on compile code to native code, and the native code generated by JIT occupies most of the space of Code Cache. Related parameters Codecache Size Options -XX:InitialCodeCacheSize ...

Posted by rjs34 on Sat, 11 May 2019 10:40:14 +0200

Talk about String, StringBuilder, StringBuffer

[TOC] Strings are a sequence of characters, and Java provides three classes, String, StringBuilder, and StringBuffer, to encapsulate strings String The String class is an immutable class. After a String object is created, the character sequence in the object is immutable until the object is destroyed. Why is it immutable jdk1.8 public final cla ...

Posted by YodaOfCamarilla on Fri, 10 May 2019 16:43:16 +0200

Android Design Patterns - Agent Patterns

1. definition Providing a proxy for an object and controlling the reference of the original object by the proxy object is an object structural pattern. 2. role In some cases, customers do not want or can not directly refer to an object, which can be indirectly referred to by a third party called a "proxy". Proxy objects c ...

Posted by railgun on Thu, 09 May 2019 05:06:04 +0200

java—— reflection details

Reflection is rarely used in our ordinary program development, but it is used extensively in our underlying program design, such as agent mode, factory mode and some other design modes, including the development tools we use, as well as at the bottom of many open source frameworks.So mastering Java's reflection mechanism is very ...

Posted by ejames13 on Wed, 08 May 2019 17:18:03 +0200