Notes on interfaces, polymorphism, inner classes, and more!

1. Static The static keyword can modify member variables and member methods basic concept: static member belongs to class It can be accessed through the class name, and is generally modified with public classname.propertyname; classname.methodname(); can also be accessed by object name (not recommended) Memory explanation: Sta ...

Posted by ess14 on Wed, 31 Aug 2022 03:28:19 +0300

Apache Commons Bridge For Scala

Motivation and preparation Apache Commons It is a large and rich set of tool libraries. I first came into contact with this code base when I participated in a Java project a few years ago, and it is now a must-have tool for developing Java/Scala projects. I am currently mainly using commons lang3 . This repository contains several extensions ...

Posted by KindredHyperion on Mon, 29 Aug 2022 02:59:05 +0300

Redis advanced practice

Redis advanced practice transaction management Comparison between redis and mysql redis slow log queryredis high availability and cluster redis master-slave replication Synchronization mechanism**Master slave replication principle****Command propagation**SYNC and PSYNCConsistency of redis replication ...

Posted by ben2.0 on Sat, 27 Aug 2022 14:01:57 +0300

Day_ 8/23 (Talking about Reflection Concept)

Catalog Preface 1. Introduction of Reflection 2. Steps for using reflection 1. Get byte code object 1.1 What is a byte code object 3 ways to get byte code objects 2. Get construction methods, member methods, properties from byte code files 2.1 Get the construction method (Constructor class type) 2.2 Get Member Method (Method Class Type ...

Posted by ozzysworld on Fri, 26 Aug 2022 21:39:14 +0300

Basic java Lesson 8

catalogue 1, Specific contents 1.1 concept of polymorphism 1.2 polymorphic requirements 1.3 implementation steps of polymorphism 1.4 definition of polymorphism 2, abstract class reflection: 2.1 abstract concepts 2.2 abstract method 3, Interface 3.1 concept of interface 3.2 definition and use of interface 3.3 contents of interface ...

Posted by ramu_rp2005 on Thu, 25 Aug 2022 09:59:23 +0300

Classic sorting algorithm

Several common sorting algorithms are listed here: 1. Selective sorting, 2. Bubble sorting, 3. Insert sorting, 4. Merge sorting, 5. Quick sorting, 6. Heap sorting, 7. Count sorting, 8. Cardinal sorting. Catalog 1. Select Sort 2. Bubble sorting 3. Insert Sort 4. Merge Sort 5. Quick Sort 6. Heap Sorting 7. Count Sort O(N) 8. Cardinal Sor ...

Posted by slak on Thu, 25 Aug 2022 02:29:44 +0300

Regular + Python: a lightweight interface documentation tool

ApiFormatMd lightweight Java interface document generation tool characteristic Execute Java code completely based on native code without reference to additional dependenciesGenerate MarkDown format documents. You can use ShowDoc to generate online documents Configuration item main.py Author = 'River fire is like a firefly' (corre ...

Posted by maseeha on Wed, 24 Aug 2022 07:29:09 +0300

[springboot series] customize an interceptor, with source code

Spring Boot version The version of Spring Boot on which this article is based is 2.3.4.RELEASE. What is an interceptor? Interceptor in Spring MVC is similar to Filter in Servlet. It is mainly used to intercept user requests and handle them accordingly. For example, the interceptor can perform permission verification, log the request informat ...

Posted by ghurtado on Tue, 23 Aug 2022 04:29:05 +0300

Java Review Notes Advanced 05: Polymorphism

polymorphic 1. Overview of polymorphism 1.1 What is polymorphism Objects of the same type perform the same behavior and exhibit different behavioral characteristics; 1.2 Common forms of polymorphism Parent type object name= new subclass constructor; Interface object name= new implementation class constructor; Member Access Characteristi ...

Posted by Ryokotsusai on Sun, 21 Aug 2022 23:10:31 +0300

Java enumeration classes and annotations

classification Custom class enumerationImplementation using enum keyword Custom enumeration class code Constructor privatization to prevent direct newRemove the set related method to prevent the property from being modifiedCreate fixed objects directly in SeasonTo prevent the static method of the class from being loaded every time the pr ...

Posted by BooRadLey on Sun, 21 Aug 2022 09:29:12 +0300