current location:Home > Technical Articles > Java > JavaBase

  • What is file in java?
    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 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
    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 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?
    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
    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 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?
    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
    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?
    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?
    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
    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
    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
    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
    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

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28