jiva -- Inheritance of Classes

1. Defining classes public class A{ //1. Attributes / Static Attributes //2. Method/Static Method //3. Construction Method //4. Internal classes //menber-level public static void main(String[] args){ //method- ...

Added by sirTemplar on Mon, 09 Sep 2019 11:04:14 +0300

Monitoring tomcat with zabbix (including jvm monitoring)

1. Preface: Our monitoring system is zabbix. We have just finished monitoring jvm and tomcat recently. We need to spit out the following:The official jvm and tomcat monitoring templates provided by zabbix have pits in the writing format of the item, which prevents many content from being monitored.zabbix monitoring java articles written by neti ...

Added by xuelun on Mon, 02 Sep 2019 06:20:10 +0300

Pain Point in Java Point - synchronized Deep Resolution

Pain Point in Java Point - (8) synchronized Deep ResolutionOverview:Brief introduction: role, status, impact of uncontrolled concurrencyUsage: Object locks and class locksSeven cases of multithreaded access synchronization methodsNature: reentrant, uninterruptiblePrinciple: Adding and Unlocking Principle, Reentry Principle, Visibility Principle ...

Added by eirikol on Fri, 30 Aug 2019 11:32:05 +0300

Java Foundation - Not Magical Generics

Preface Previously, some points related to Java basics were trained for company newcomers, and generic related points of knowledge were systematically sorted out.Share it.I hope that some students who are not familiar with generics will have a complete knowledge of Java generics. Before you start, give you a test. List<String> strList = n ...

Added by Aretai on Fri, 30 Aug 2019 05:24:14 +0300

How do I get the Thread return value? (FutureTask Interpretation)

Fallen life... How do I get the Thread return value? Occasionally see this question, for the standard jdk1.8, do we take the answer in minutes?Answer: Simple, Callable, perfect solution, next question... But what do the predecessors of jdk1.4 (and even earlier) do to get the thread return value? Or, disable the Callable skill, how to get the th ...

Added by vichiq on Thu, 29 Aug 2019 11:15:22 +0300

Class Loading Mechanism, Parent Delegation Model

Generally speaking, we divide the class loading process of java into three main steps: loading, linking and initialization. The first stage is the loading stage. It is java that reads bytecode data from different data sources into JVM and maps it to JVM-approved data structures, and maps it to JVM-approved data structures (Class objects). The d ...

Added by tharagleb on Tue, 27 Aug 2019 15:51:40 +0300

IV. Java API s in Common Use

IV. Java API s in Common Use Can switch work on byte, on long and on String? Before Java 5 switch(expr), expr could only be byte, short, char, int. Since Java 5, enumeration types have been introduced into Java, and expr can also be enum types. S ...

Added by Peter on Mon, 26 Aug 2019 12:29:56 +0300

JavaDay11 static keyword

tags : java Foundation flag: blue @toc JavaDay11 static keyword I. Introduction of static Keyword Living conditions: Water dispensers, for example, are usually placed in a public environment where everyone uses them together. It is not said ...

Added by blackswan on Fri, 23 Aug 2019 14:13:26 +0300

Java Container Source Analysis-Concurrent HashMap

ConcurrentHashMap I. Overview Definition of Concurrent HashMap 2.1. Class Definition 2.2. Definition of member variables 2.3. Definition of paragraph: Segment 2.4,HashEntry Concurrent HashMap Concurrent Access 3.1 JDK 1.7 put(key,value) 3.2 JDK ...

Added by imagineek on Wed, 21 Aug 2019 08:44:31 +0300

Detailed explanation of JVM_class loading mechanism

Class File Loading Process (Class Loading Process) Load - > Connect (Verification - > Prepare - > Resolve) - > Initialization - > Use - > Unload Load In the loading stage, the jvm obtains such bytecode files (. class files) by the class name. The data structure in the file is then transferred to memory (converted into data str ...

Added by $Three3 on Sun, 18 Aug 2019 18:11:01 +0300