current location:Home > Technical Articles > Java > JavaBase

  • 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 3278 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 2434 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 3604 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 5450 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 4292 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 3601 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 4830 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 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
    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
    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
    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?
    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
    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
    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
    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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!