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:
-
- Java uses reflection to convert objects into MongoDb structures
- As Java programmers, if we use reflection well, we can not only improve our technical level, but also develop better projects. However, although many people have heard of reflection, they don't know where to use it. Then, the basic Java tutorial starts from actual work, using reflection to convert objects...
- JavaBase 3785 2020-12-15 17:30:48
-
- What are the java thread states?
- Java thread status: 1. New status New; 2. Ready status Runnable; 3. Running status Running; 4. Blocked status Blocked; 5. Death status Dead.
- JavaBase 15505 2023-01-13 00:39:47
-
- What is the difference between jdk1.7 and jdk1.8
- Difference: The permanent generation was canceled in jdk1.8 and replaced by Metaspace. This space does not occupy the memory of the jvm virtual machine, but the memory of the physical machine; jdk8 has added lambda expressions, access to local variables, functional interfaces, etc. characteristic.
- JavaBase 13614 2020-12-14 17:17:51
-
- What is the function of static keyword in java
- The role of the static keyword in Java: 1. In Java, variables can be modified by the statin keyword to achieve the effect of global variables; 2. The static modified method belongs to the class method and can be called without creating an object; 3. The static code block is often used Initialize static variables.
- JavaBase 36314 2023-01-13 00:39:47
-
- Understand Java log levels, duplicate recording, and log loss issues
- The Java Basics Tutorial column introduces how to solve the problems of Java log levels, repeated recording, and lost logs. Log configuration files are usually very complicated. Many students are used to copying configuration files directly from other projects or online blogs, but do not study carefully how to modify them. Common errors occur in duplicate logging, performance of synchronous logging, and misconfiguration of asynchronous logging.
- JavaBase 9717 2020-12-11 17:26:34
-
- What are the four methods of thread pool creation?
- Method: newCachedThreadPool creates a cacheable thread pool, newFixedThreadPool creates a fixed-length thread pool, newScheduledThreadPool creates a fixed-length thread pool, and newSingleThreadExecutor creates a single-threaded thread pool.
- JavaBase 34405 2023-01-13 00:39:43
-
- Detailed explanation of JVM object creation and access positioning process
- The java basic tutorial column mainly introduces the JVM object creation and access positioning process in detail. The article introduces it in 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 3105 2020-12-08 17:50:03
-
- What is the difference between static proxy and dynamic proxy?
- Difference: Static agents are created by programmers or tools generate the source code of the agent class, and then compile the agent class; the bytecode file of the agent class already exists before the program is run, and the relationship between the agent class and the delegate class is determined before running. The source code of the dynamic proxy class is dynamically generated by the JVM based on mechanisms such as reflection during program running, so there is no bytecode file for the proxy class.
- JavaBase 4576 2020-12-04 10:52:34
-
- Is java a dynamic language or a static language?
- Java is a static language. Java's variable types are determined during compilation and cannot be changed during runtime. Type conversion is also mandatory. For example, when converting a large-range integer type to a small-range integer type, it must be forced. For example, int must be forced to convert. Only in this way can we get the small range type byte; so Java is a static and strongly typed language.
- JavaBase 7540 2023-01-13 00:39:43
-
- What is the myeclipse installation tutorial?
- Myeclipse installation tutorial: First click on the installation package to install and agree to some terms; then set the installation location and select the components to be installed; then select the number of software bits; finally initialize the default space and set the folder path.
- JavaBase 25354 2023-01-13 00:39:42
-
- What is synchronization? How many methods are there to achieve synchronization?
- Add a synchronization lock to avoid being called by other threads before the thread completes the operation, thereby ensuring the uniqueness and accuracy of the variable; synchronization implementation methods: 1. Synchronization code blocks; 2. Use special domain variables to implement threads Synchronization; 3. Use reentrant locks to achieve thread synchronization; 4. Use local variables to achieve thread synchronization.
- JavaBase 10974 2020-12-22 15:52:28
-
- Java programmers hand-write a Douyin video watermark removal tool
- The Java Basics column introduces the method of removing watermark tools.
- JavaBase 12287 2020-11-27 17:02:30
-
- Detailed explanation of JAVA implementation of user lottery
- The java basic tutorial column introduces how to implement user lottery.
- JavaBase 3931 2020-11-25 17:17:42
-
- What are the three ways to create threads in java?
- The three methods of creating threads in Java are: 1. Inherit the Thread class to create a thread; 2. Implement the Runnable interface to create a thread; 3. Use Callable and Future to create a thread.
- JavaBase 6801 2020-11-30 16:25:33
-
- What is the difference between string, stringbuffer and stringbuilder?
- Difference: The String class is an immutable class. When a String object is created, the character sequence contained in the object is immutable until the object is destroyed; the StringBuffer object represents a mutable string object and is thread-safe; the StringBuilder class represents Mutable string object and not thread-safe.
- JavaBase 14152 2020-11-20 09:54:27