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 is file in java?
- File in java is a file class that can be used to add, delete, and search for certain types of files or folders. At the same time, it can be comprehensively utilized according to the characteristics of its member variables to avoid errors across systems, and it is best to enter when searching. Absolute path to avoid non-existent files.
- JavaBase 4022 2019-12-03 10:16:49
-
- Reasons and solutions for 400 errors reported in Java projects
- Reasons why Java projects report 400 errors: 1. The field names or types submitted in the front end are inconsistent with those in the backend, resulting in 400 errors. 2. The front end did not convert the submitted object into a string. Solution: 1. Ensure that the field name types are consistent. 2. Convert the object passed by the front end into a string.
- JavaBase 12090 2019-12-03 10:08:40
-
- Detailed explanation of the method of judging whether it is a number in java
- How to determine whether it is a number in Java: 1. First define the regular expression "[0-9]*", and then use the matcher() method to match the regular expression to determine whether it is a number. 2. Use the isDigit() function to determine. 3. Determine whether a character is a digit or not by its ASCII code value.
- JavaBase 4972 2019-12-03 09:54:13
-
- How to export Excel from Java
- How to export Excel in Java: You can use the Jakarta POI HSSF API component in java to implement Excel export. 1. Use HSSWorkbook to create Excel file objects and sheet objects. 2. Return the row object and get the cell object. 3. Use cell objects to read and write.
- JavaBase 4497 2019-12-03 09:44:27
-
- How to get input in java?
- Methods to obtain input in java: 1. Use the System.in.read() method to obtain the input characters from the console. 2. Use the BufferedReader class and the InputStreamReader class to get the input string from the console. 3. Use the Scanner class to obtain input.
- JavaBase 8842 2019-12-03 09:21:34
-
- 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 3507 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 2813 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 3798 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 5639 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 4635 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 3797 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 5047 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 4225 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 6227 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 2866 2019-12-02 13:30:33