current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- What are the formats of if statements?
- The if statement has three formats, namely: 1. [if (Boolean expression) {execution statement}]; 2. [if (Boolean expression) {execution code} else {execution code}]; 3. [if (Boolean expression) {execution code}]; Expression){execution code}else if (Boolean expression){execution code}else{execution code}].
- JavaBase 23989 2020-07-01 09:52:19
-
- What does dependency injection mean?
- Dependency injection means that when the program is running, if you need to call another object for assistance, you do not need to create the callee in the code, but rely on external injection. Spring's dependency injection has almost no requirements on the caller and the callee. , fully supports the management of dependency relationships between POJOs.
- JavaBase 7211 2020-06-29 15:30:00
-
- Detailed explanation of Spring AOP annotations
- This article mainly introduces Spring AOP annotation cases and detailed explanations of basic principles. The article introduces it in great detail through sample code. It has certain reference learning value for everyone's study or work. Friends who need it can refer to it.
- JavaBase 3498 2020-06-28 18:00:16
-
- What are the characteristics of the interface?
- The characteristics of the interface are: 1. The interface is modified with the interface keyword; 2. The interface cannot be instantiated; 3. The implementation class must implement all methods of the interface (except abstract classes); 4. The implementation class can implement multiple interfaces; 5. , the constants in the interface are static constants
- JavaBase 13650 2020-06-28 16:19:28
-
- What does the interface do?
- The role of interfaces: 1. Interfaces can separate projects, and all layers are oriented to interface development, improving development efficiency; 2. Interfaces reduce the coupling between code and code; 3. Interfaces can be implemented and inherited in multiple ways, and one class In addition to interfaces, other classes can also be inherited.
- JavaBase 27664 2020-06-28 16:05:10
-
- What is the interface
- An interface is a declaration of a series of methods and a collection of method characteristics. An interface only has method characteristics but no method implementation, so these methods can be implemented by different classes in different places, and these implementations can have different behaviors (functions). ).
- JavaBase 7741 2020-06-28 15:52:23
-
- What are the characteristics of abstract classes
- The characteristics of abstract classes are: 1. Both abstract classes and abstract methods need to be modified with abstract; 2. There can be no abstract methods in abstract classes, but abstract methods must be in abstract classes; 3. Abstract classes cannot directly create objects; 4. Abstract Classes have constructor methods.
- JavaBase 18879 2020-06-28 16:06:17
-
- Java Reactor Reactor Pattern
- This article mainly introduces the detailed explanation of how to use the Java Reactor reactor mode. The article introduces it in great detail through sample code. It has certain reference learning value for everyone's study or work. Friends who need it can refer to it.
- JavaBase 2251 2020-06-24 18:09:43
-
- What are the keywords used to define interfaces in Java?
- The keyword for defining interfaces in Java is "interface". "Interface" is the keyword for interface operations in object-oriented programming languages. Its function is to combine required members to encapsulate a set of certain functions. An interface cannot be instantiated directly, nor can it contain any code for members, only the members themselves are defined.
- JavaBase 11610 2020-06-24 17:08:28
-
- What is the difference between Java abstract classes and interfaces?
- The difference between Java abstract classes and interfaces: 1. Abstract classes can provide partial implementation of certain methods, but interfaces cannot; 2. Abstract classes are a single inheritance mechanism, and its subclasses do not necessarily have to implement all unimplemented methods in the parent class. , and interfaces. A class can have multiple interfaces, and all methods must be implemented.
- JavaBase 2991 2020-06-23 16:37:39
-
- Is Java a JDK?
- Java is not JDK. JDK is a product for Java developers. It is the core of the entire Java, including Java runtime environment, Java tools and Java basic class libraries. Java is an object-oriented programming that can write cross-platform application software. language.
- JavaBase 4562 2020-06-23 16:23:43
-
- Spring Security Principles
- Spring Security adopts the chain of responsibility design pattern. There is a long filter chain. First, the client initiates a request and enters the Security filter chain; then it determines whether it is a login; finally, it finds the corresponding authentication manager based on the URI. , perform authentication.
- JavaBase 3480 2020-06-23 14:42:06
-
- Detailed explanation of Spring IoC and AOP principles
- The principle of Spring IoC is implemented through the reflection mechanism. When instantiating a class, it calls the set method in the class through reflection to inject the class attributes previously saved in the HashMap into the class. AOP aspect-oriented programming is based on IoC and is an adaptation of OOP. A useful supplement that can reduce the coupling between modules.
- JavaBase 7786 2020-06-23 09:23:17
-
- How to generate random numbers in java
- Methods for randomly generating numbers in Java include: 1. Use the [new Random()] constructor to generate a random number generator to generate numbers; 2. Use the [Math.random()] method to generate a random number generator to generate numbers. .
- JavaBase 5565 2020-06-22 17:58:22
-
- Detailed explanation of trim() method in java
- In Java, you can use the "trim()" function to remove excess spaces. This function is used to remove excess spaces at both ends of the string. Its syntax is "trim()", and its parameter return value is the excess spaces at both ends of the string. A string of spaces, and no matter how many spaces there are at both ends, they will be removed, and the spaces in the middle will not be removed.
- JavaBase 7476 2020-06-22 17:40:27