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 are the java output statements?
- The output statements are: 1. Print "System.out.println()" with line breaks; 2. Print "System.out.print()" without line breaks; 3. Byte output "System.out.write()"; 4. Output "System.out.printf()" in format.
- JavaBase 30649 2023-01-13 00:39:55
-
- How to set eclipse language to Chinese
- Method: 1. Find the language pack download URL and copy it; 2. Open eclipse and click "help" - "Install New Software" - "Add"; 3. Paste the URL in "Location" and click "Add"; 4 , check "Simplified Chinese Package"; 5. Wait for loading to complete and restart.
- JavaBase 197603 2023-01-13 00:39:55
-
- What is the difference between static methods and non-static methods in java
- Differences: 1. Static methods are methods modified with the static keyword, which belong to classes, not objects; non-static methods are ordinary methods that are not modified with the static keyword, and belong to objects, not classes. 2. Static methods can be called directly, class name calls and object calls; non-static methods can only be called through objects. 3. Different life cycles.
- JavaBase 29017 2023-01-13 00:39:55
-
- What are the shortcut keys for IDEA?
- This article will introduce to you the shortcut keys of IDEA. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
- JavaBase 1987 2021-05-06 09:45:33
-
- How to decompile class files into java files
- Method: 1. Download the "jad.exe" plug-in and place it in the same directory as the ".class" file; 2. Open the cmd command window and use the cd command to enter the directory where "Jad.exe" is located; 3. Execute "Jad -d java file storage path -sjava class file path" command can be used.
- JavaBase 28722 2023-01-13 00:39:55
-
- What are the seven major components of Spring Cloud?
- Seven major components of Spring Cloud: 1. Eureka component, which describes how the service is registered and where to register it; 2. Ribbon component; 3. Feign component, a declaration web service client; 4. Hystrix component; 5. Config component; 6 , Zuul component; 7. Bus component.
- JavaBase 22981 2023-01-13 00:39:55
-
- How to create objects in java
- Methods for creating objects in Java: 1. Use the new keyword; 2. Use the newInstance method of the Class class, which can call the constructor without parameters to create objects; 3. Use the newInstance method of the Constructor class; 4. Use the clone method; 5. Use Deserialize.
- JavaBase 26519 2023-01-13 00:39:55
-
- What are the methods to convert string to date in java
- Conversion method: 1. Use SimpleDateFormat to format the time; 2. Use "org.apache.commons.lang3.time.DateUtils" to format the time; 3. Use DateTimeFormatter to format the time.
- JavaBase 69863 2023-01-13 00:39:54
-
- What is the use of split() method in java
- In Java, the split() method can split a string based on matching a given regular expression, and then return a string array, the syntax is "stringObject.split(regular expression delimiter, number of splits)"; if There are multiple delimiters, you can use "|" as a hyphen.
- JavaBase 9674 2023-01-13 00:39:54
-
- What are the three major systems of java?
- JAVA has three major systems, namely: 1. Java SE, including Java basic class libraries and syntax; 2. Java EE, based on Java SE, defines a series of services, APIs, protocols, etc., and adds the ability to write enterprise-level Application class library; 3. Java ME.
- JavaBase 26127 2023-01-13 00:39:54
-
- What is the difference between java and c++
- Difference: Java cannot use a non-Boolean value as a Boolean value in a logical expression, but C++ can. C++ introduces an operator overloading mechanism, which Java does not support. C++ has goto, Java does not have goto. There is multiple inheritance in C++ and only single inheritance in Java, but Java can implement multiple inheritance through interfaces.
- JavaBase 46395 2022-01-12 15:10:35
-
- What are the five commonly used design patterns in Java?
- Five commonly used design patterns in Java: 1. Singleton design pattern; 2. Factory design pattern; 3. Agent design pattern; 4. Observer design pattern; 5. Adapter pattern.
- JavaBase 16081 2023-01-13 00:39:54
-
- What are the commonly used Java code snippets?
- Commonly used Java code segments include: 1. Convert strings to integers; 2. Add content to the end of the file; 3. Get the name of the current method; 4. Convert strings to dates; 5. Use JDBC to connect to Oracle.
- JavaBase 16175 2023-01-13 00:39:54
-
- Sorting of Java Basics TreeSet and Java Custom Types
- The bottom layer of the TreeMap collection is actually a TreeMap. The bottom layer of the TreeMap collection is a binary tree. The elements placed in the TreeSet collection are equivalent to being placed in the key part of the TreeMap collection. The java basic tutorial column will introduce it in detail. Friends in need can take a look.
- JavaBase 3061 2021-03-05 09:54:00
-
- Java zero-based detailed explanation of multi-threading
- Daemon threads can be divided into thread classification: user threads (the above are all user threads), and the other is daemon threads. The daemon thread is like this. When all user threads end their life cycle, the daemon thread will end its life cycle. As long as there is one user thread, the daemon thread will not end. For example, the famous garbage collector in Java is a daemon thread. It will not end until all threads in the application end.
- JavaBase 1718 2021-03-04 10:20:39