Recent Posts
-
How to use the Java this keyword
How to use the Java this keyword This keyword in constructor Construction methods are automatically called when a clas…… -
Usage Summary of foreach collection in mybatis (three kinds)
Foreach is mainly used to build in conditions. It can iterate a set in SQL statements. The attributes of foreach eleme…… -
How to add, cancel and reset spring built-in task scheduling
preface Everyone should know that using spring's task scheduling brings great convenience to our development. However,…… -
Android: “universal” activity reconstruction
preface It's been a long time since I wrote this article on Android: how to write a "universal" activity. However, due…… -
Asynctask has three attribute values and four steps
Recently, I learned to use asynctask to handle network operations. Although the code doesn't look very complex, there …… -
Solution to implement immersive status bar with multiple fragments in an activity
There is a problem in the project: an activity has multiple fragments. The immersive status bar of each fragment is di…… -
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…… -
Detailed interpretation of Hibernate cache mechanism
1、 Why (why use hibernate cache?) Hibernate is a persistence layer framework that often accesses physical databases. …… -
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…… -
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,…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
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…… -
Detailed explanation of calendar class usage examples in Java
This article describes the usage of calendar class in Java. Share with you for your reference, as follows: Calendar in…… -
Java programming uses stack to solve the code example of Hanoi Tower problem (non recursive)
[title] The tower of Hanoi is a classic problem. Here is a modification of the rules of the game: now the restrictions…… -
Simple definition and usage example of Java two-dimensional array
This article describes the simple definition and use of Java two-dimensional array. Share with you for your reference,…… -
Futuretask source code analysis (recommended)
Futuretask only implements the runnablefuture interface: @ h_ 404_ 1@ This interface inherits Java Lang. runnable and …… -
Explain in detail how JSTL in Java Web circulates map data in list
Explain in detail how JSTL in Java Web circulates map data in list The first way: 1: Background code (test) 2: Front p…… -
Preventing unlisted users from operating — a simple implementation based on struts 2 interceptor
Generally, our web applications are allowed to operate only after the user logs in, that is, we do not allow non login…… -
Code example of Java crawling mailbox from the Internet
Web crawler: in fact, it is a program used to obtain data conforming to specified rules on the Internet. summary Jsup ……