current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- What is the function of java servlet?
- The role of servlets is to extend the capabilities of the server by creating a framework to provide request and response services on the Web. Generally speaking, a servlet is used to receive request data from the client, and then call the underlying service to process the data, generate results, and return the data.
- JavaBase 4538 2020-06-17 14:27:02
-
- 4 stages of Servlet life cycle
- The four stages of the Servlet life cycle: 1. Initialization by calling the "init()" method; 2. Calling the "service()" method to handle the client's request; 3. Termination by calling the "destroy()" method; 5. Garbage collection is performed by the JVM's garbage collector.
- JavaBase 5347 2020-06-17 11:14:46
-
- What does public static void main mean?
- [public static void main] is the entry address of the Java program. When the Java virtual machine runs the program, the first thing it looks for is the [main] method. Only the Java program with the [main()] method can be run by the Java virtual machine.
- JavaBase 10073 2020-06-16 17:25:04
-
- Commonly used algorithms: Hash algorithm
- Programmers should be familiar with hashing algorithms, such as the industry-famous MD5, SHA, CRC, etc. In daily development, we often use a Map to load some data with a (key, value) structure, and use the hashing algorithm to (1) The time complexity improves program processing efficiency.
- JavaBase 5309 2020-06-16 17:18:15
-
- How to use tostring method in java
- The method of using tostring in java is: 1. The Object class has a toString() method, and every class created will inherit this method; 2. It returns a String representation of the object, and is very helpful for debugging; 3. For the default The toString() method is often not satisfied.
- JavaBase 10175 2020-06-16 17:16:14
-
- The internal structure and operating mechanism of JVM
- JVM is the abbreviation of Java Virtual Machine. JVM is a specification for computing devices. It is a fictitious computer that is implemented by simulating various computer functions on an actual computer.
- JavaBase 2314 2020-06-16 16:23:28
-
- Transaction processing in JAVA
- A transaction is a sequence of operations to access the database. The database application system completes access to the database through transaction sets. The correct execution of transactions causes the database to transition from one state to another.
- JavaBase 3591 2020-06-16 16:12:39
-
- What are the eight basic data types in java
- The eight basic data types in Java are: int, short, float, double, long, boolean, byte, and char. Values in Java are all signed, there are no unsigned numbers, and their value ranges are fixed.
- JavaBase 3099 2020-06-16 14:35:38
-
- What does the import java.util.* statement mean?
- The import java.util.* statement means to import all classes under this package into the program. "*" represents a wildcard character, including all classes of util. Import also has an import statement, which is a single-type import, such as [import java.util.ArratList].
- JavaBase 14279 2020-06-16 13:49:12
-
- What is springmvc workflow
- The springmvc workflow is: first, the user sends a request to the server, and the request will first go to the front-end controller DispatcherServlet; then the ModelAndView is handed over to the ViewReslover view parser for analysis; then the real view is returned; and finally the result is responded to the user.
- JavaBase 4052 2020-06-15 15:40:49
-
- What are the built-in objects in jsp? What are their functions?
- The built-in objects and functions of jsp are: 1. The Request object of the HttpServletRequet class, which represents the request object; 2. The Response object of the HttpSevletResponse class, which represents the response object and is mainly used to send data to the client.
- JavaBase 5706 2020-06-15 14:19:25
-
- What is the function of thread.sleep?
- The function of thread.sleep is to trigger the operating system to immediately restart the CPU competition. The result of the competition may be that the current thread still obtains CPU control, or it may be replaced by another thread to obtain CPU control.
- JavaBase 7914 2020-06-15 11:52:40
-
- What can java do
- Java is mainly divided into three parts: javaSE, javaME, and javaEE. The application scenarios are: 1. Making stand-alone software; 2. Developing Web-based systems to provide solutions for various Internet applications and large and complex projects; 3. Used to develop software for games, electronic devices, mobile phones, etc.
- JavaBase 3780 2020-06-13 16:34:41
-
- What is the implementation principle of java annotations
- The essence of annotation in Java is a special interface that inherits Annotation. Its implementation principle is that when annotations are obtained through reflection, the dynamic proxy object [$Proxy] generated by the Java runtime is returned, and the custom annotation method is called through the proxy object. The invoke method will eventually be called.
- JavaBase 13566 2020-06-13 14:39:41
-
- random.nextint() detailed explanation
- Usage of [random.nextint()]: 1. [nextInt()] without parameters will generate all valid integers; 2. [nextInt(int x)] with parameters will generate a range from 0~x [ Excluding any positive integer within X]; 3. Generate an integer within the specified range.
- JavaBase 53874 2020-06-13 14:15:40