Java
-
Java to find the large number of two numbers (example explanation)
Max function in Java in math The application is as follows: int a=34; int b=45; int ans=Math. max(34,45); Then the v…… -
java. Comparison between lang. void and void and introduction to their usage
Void is not a function, but a modifier of a method. Void means that the method does not return a value, which means th…… -
Brief introduction to Java automatic disassembly box
In the interview process, when interviewers ask basic questions, they often ask about the disassembly and assembly box…… -
Struts 2 configuration action details
After implementing the action processing class, you can Configure the action in XML to let the struts 2 framework know…… -
Access to domains and static methods based on Java does not have polymorphism (example explanation)
1. Associating a method call with a method body is called 2. Compile time binding (static) determines the type of refe…… -
Introduction to common tool classes under Java language Lang package
No matter where you are developing Java applications, you have to write a lot of tool classes / tool functions. You kn…… -
Detailed explanation of Java set class source code analysis
Like list, set inherits from the collection interface. The commonly used implementation classes are HashSet and TreeSe…… -
Brief introduction to Java singleton mode
1、 Concept Singleton pattern is a common software design pattern. Its core structure contains only a special class ca…… -
Strategy model of Java design pattern learning
Policy mode: policy mode is a method to define a series of algorithms. The work completed by the algorithms is the sam…… -
Several ways to implement action in struts 2
Action is used to process user requests, so it is also called business controller. Each action class is a work unit. T…… -
Factory method pattern for Java design pattern learning
Factory method: define an interface for creating objects, and let subclasses decide which class to instantiate. Factor…… -
Java implementation of two-dimensional array to JSON method example
This paper describes the method of converting two-dimensional array to JSON in Java. Share with you for your reference…… -
Java thread safe counter simple implementation code example
In the past few days, a business code needs a variable to increase from 1 every day. To this end, I simply encapsulate…… -
Loading order and execution results of classes in Java
The specific code is as follows: Execution results: Static method of parent class 2 static initialization block subcla…… -
Example of Java output printing tool class encapsulation
When you print out Java and view the field value, you feel that you have written system. Net every time out. After pri…… -
Explain the reflection mechanism in Java (including array parameters)
Explain the reflection mechanism in Java (including array parameters) Java reflection is what I always like very much,…… -
Java toString method rewrite code example
When you need to output an object to the display, you usually call his toString () method to convert the content of th…… -
Detailed interpretation of Hibernate cache mechanism
1、 Why (why use hibernate cache?) Hibernate is a persistence layer framework that often accesses physical databases. …… -
be based on Spring@Autowired Annotation and automatic assembly
1 method of configuration file When we write code for the spring framework. Always follow the rule that all beans inje…… -
Switching of multiple data sources in Java automated testing (example explanation)
Data driven is a very important concept in automated testing. When the data is separated from the script, in the face …… -
Detailed explanation of Shiro session expiration time in spring boot actual combat tutorial
preface As we all know, in spring boot, setting the session expiration time only needs to be in application Add server…… -
Detailed explanation of Java synchronization function code
summary The lock of the synchronization function is this, and the lock of the static synchronization function is the b…… -
Java uses POI to parse excel and obtain instances of all cell data
1. Import POI related jar packages org. apache. poi jar 2. Code example The above example of Java parsing excel with P…… -
Detailed explanation of the selection of map traversal mode in Java
1. Description For the traversal of map in Java, many articles recommend using entryset, which is much more efficient …… -
Java random number production algorithm example
Java provides math The random () function returns a random number of double type, and there is also the random class i…… -
Export excel tool class instance implemented by Java
This paper describes the export excel tool class implemented in Java. Share with you for your reference, as follows: E…… -
Detailed explanation of object-oriented programming ideas and object examples in Java language
When beginners learn Java, object-oriented is difficult to understand, so today Xiaobian will put this idea for you to…… -
Java implementation of four mixed operation code examples
Using the stack, you can handle the operation priority. Use natural four arithmetic expressions, such as 4 + (3 * (3-1…… -
Springcloud practical tips: zuul’s path matching
Whether we use the configuration method of traditional routing or service routing, we need to define a matching expres…… -
Analysis of common methods of appending content to the end of file in Java
This article describes the common methods of appending content to the end of the file in Java. Share with you for your…… -
Kryo framework usage code example
Source of kryo framework has been moved to https://github.com/EsotericSoftware/kryo , enter this page, and then click …… -
Mybatis L2 cache implementation code
L2 cache needs to be manually configured and enabled, as follows: Set enable L2 cache / mybatis02 / config / mybatis-c……
