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:
-
- The difference between overloading and rewriting in java
- The difference between overloading and rewriting in Java: 1. Overloading means that different functions use the same function name, but the number or type of parameters of the function is different. Overriding refers to reimplementing the virtual functions in the base class in the derived class. 2. The relationship between the two and the class is different. 3. The two have different requirements for parameter lists.
- JavaBase 3278 2019-12-02 16:05:08
-
- Solution to Java reading oracle garbled code
- Solution to garbled characters read from Oracle in java: 1. Transcode the read string, transcoding method: "String(s.getByte(A),B)". 2. Use Druid for transcoding, which provides a unified package for various database drivers and adds functions such as logging, alarms, and encoding conversion.
- JavaBase 2434 2019-12-02 15:25:58
-
- What is a package in java?
- In order to better organize classes, Java provides a package mechanism to distinguish namespaces of class names. Java uses the package mechanism to prevent naming conflicts, access control, provide search and location of classes, interfaces, enumerations and annotations, etc.
- JavaBase 3604 2019-12-02 15:15:15
-
- The difference between double and float in java
- The difference between double and float in Java: 1. The number of bytes occupied in memory is different: double occupies 8 bytes and float occupies 4 bytes. 2. The number of significant digits is different: double has 16 significant digits, and float has 8 significant digits. 3. The range of numbers that can be expressed is different.
- JavaBase 5450 2019-12-02 14:51:34
-
- What does final mean in Java?
- Final in Java is a keyword that can be used to modify references, methods and classes. When used to modify a reference, the referenced value or address cannot be modified. When used to modify a method, this method will become the final method and cannot be overridden by subclasses. When used to modify a class, the class becomes final and cannot be inherited.
- JavaBase 4292 2019-12-02 14:38:44
-
- Can java sort letters?
- Java can sort alphabetically. In java, first use the substring() method to intercept the letters in the string and save them into the list collection, and then use the sort() method in the java.util.Collections class to sort the letters in the list collection.
- JavaBase 3601 2019-12-02 14:24:45
-
- What is the difference between java character stream and byte stream
- The difference between character stream and byte stream in Java: 1. The basic unit of byte stream operation is byte, and the basic unit of character stream operation is Unicode code element. 2. The byte stream does not use the buffer by default, and the character stream uses the buffer. 3. Character streams usually process text data, and byte streams usually process binary data.
- JavaBase 4830 2019-12-02 14:10:14
-
- Introduction to the method of judging whether a string is time in java
- How to determine whether a string is time in java: first add the date and time format to parsePatterns, and then call the parseDate method to determine whether the string is time through the date and time format in parsePatterns.
- JavaBase 4016 2019-12-02 13:55:01
-
- How to determine whether a file is empty in java
- How to determine whether a file is empty in Java: There is no method in the File class to determine whether a file is empty, but you can use the return value of the length() method to determine. If the file does not exist or the file is empty, the length() method returns 0.
- JavaBase 5924 2019-12-02 13:42:32
-
- what is java serialization
- Java serialization is the process of converting Java objects into byte sequences. Serialization is a mechanism used to process object streams. The so-called object stream is to stream the contents of objects. The streamed objects can be read and written, and the streamed objects can also be transmitted between networks.
- JavaBase 2695 2019-12-02 13:30:33
-
- Introduction to the causes and solutions of Java zip compression garbled characters
- Reason: The encoding used for compressed files in the API that comes with jdk is different from the encoding format used by the operating system when processing zip compressed files, causing the compressed files to be garbled. Solution: The solution that can be adopted is to implement zip compression by using a third-party API to solve the problem of zip compression garbled characters.
- JavaBase 3385 2019-12-02 13:20:03
-
- How to package java files?
- Java file packaging steps: 1. Right-click on the project and select Export. 2. Select JAR file under java. 3. Select the project and then select the path to the jar file package. 4. Click Next and Finish in sequence to complete packaging of the java file.
- JavaBase 3464 2019-12-02 11:47:32
-
- Java determines whether a string is a legal date
- How to determine whether a string is a legal date in Java: Use the SimpleDateFormat class to set the specified date format, and then use the setLenient(false) method to strictly parse the date. If the date is unqualified, an exception will be thrown.
- JavaBase 3699 2019-12-02 11:27:59
-
- Introduction to solving string garbled characters in Java
- Solution to string garbled characters in java: Use the java.lang.String.getBytes(String charsetName) and str.getBytes(charsetName) methods in java to change the string encoding to solve the garbled characters.
- JavaBase 2981 2019-12-02 11:10:37
-
- Introduction to the method of determining whether a directory exists in java
- How to determine whether a directory exists in java: first use the exists() method to determine whether the file or directory exists, and then use the isDirectory() method to detect whether the object is a folder. If so, it returns true, otherwise it returns false.
- JavaBase 2612 2019-12-02 10:57:38