current location:Home > Technical Articles > Java > JavaBase

  • Introduction to several states of java threads
    Introduction to several states of java threads
    The five major states of java threads are: creation state (New), ready state (Runnable), running state (Running), blocked state (Blocked), and death state (Dead).
    JavaBase 3382 2019-12-26 13:48:39
  • How to sort java array
    How to sort java array
    Java array sorting method: 1. Use Arrays.sort() to sort. The Arrays.sort() sorting method is the simplest and most commonly used sorting method in java. 2. Bubble sorting. 3. Select sorting. 4. Reverse sorting.
    JavaBase 21383 2019-12-26 13:34:00
  • How to implement serialization in java
    How to implement serialization in java
    Methods to implement serialization in java: 1. Use the Serializable interface to implement serialization. This interface is an iconic interface that marks this type of object as being serializable. 2. Use the Externalizable interface to implement serialization.
    JavaBase 5307 2019-12-26 11:51:09
  • What is a domain in java
    What is a domain in java
    Domains in Java are member variables in a class, which reflect the state of the class, and state changes are implemented by methods in the class body. Domains must be defined directly in the class body and cannot be included in method definitions.
    JavaBase 3598 2019-12-26 11:37:16
  • Detailed explanation of java concurrent programming
    Detailed explanation of java concurrent programming
    Java concurrent programming is the most difficult to understand but also the most important knowledge point in the entire Java development system. It is also the basis for the implementation of various concurrent components in various open source distributed frameworks. This article provides you with a detailed introduction to concurrent programming in Java, and I hope it will be of some help to you.
    JavaBase 2586 2019-12-25 17:12:11
  • Causes and avoidance methods of garbled IO streams in Java
    Causes and avoidance methods of garbled IO streams in Java
    Reasons for garbled IO streams: 1. The encoding and decoding rules are inconsistent. 2. The character encoding does not support a certain language. Avoidance method: Use the byte[]getBytes() and String(byte[], bytes) methods for encoding and decoding respectively.
    JavaBase 2115 2019-12-25 17:11:04
  • Java determines whether an object is empty
    Java determines whether an object is empty
    ​How to determine whether an object is empty in java: 1. Use StringUtils under the org.apache.commons.lang package to determine. 2. Use StringUtils under the org.springframework.util package to judge.
    JavaBase 8929 2019-12-25 09:26:37
  • The difference between comparable and comparator in java
    The difference between comparable and comparator in java
    This article is recommended by the java zero-based entry column. The article introduces the difference between internal comparators and external comparators through examples. I hope it can help everyone. There are two types of comparators in Java, namely: 1. Internal comparator (Comparable interface); 2. External comparator (Comparator interface).
    JavaBase 2626 2019-12-24 17:47:54
  • Java implements two threads to alternately print
    Java implements two threads to alternately print
    This article is recommended by the java zero-based entry column. The article introduces how to realize alternate printing of two threads through examples. I hope it can help you. 1. Use ReentrantLock to realize alternate printing between two threads; 2. Use LinkedTransferQueue to realize alternate printing between two threads.
    JavaBase 3369 2019-12-24 17:56:25
  • Detailed graphic explanation of Java RMI (with examples)
    Detailed graphic explanation of Java RMI (with examples)
    Java remote method invocation, or Java RMI (Java Remote Method Invocation), is an application programming interface used to implement remote procedure calls in the Java programming language. This article introduces Java's RMI in detail, and I hope it will be helpful to you.
    JavaBase 5938 2019-12-24 17:33:29
  • Java method to determine if a string is not empty
    Java method to determine if a string is not empty
    How to determine whether a string is empty in Java: 1. Use "str!=null" to determine. Null means that the string does not point to anything. 2. Use """.equals(str)" to judge. "" means that it points to a string of length 0. 3. Use "str.length()!=0" to judge.
    JavaBase 5847 2019-12-24 17:15:21
  • Java uses if to determine whether strings are equal
    Java uses if to determine whether strings are equal
    Java uses if to determine whether strings are equal: For example, to determine whether string a and string b are equal, you can use the "if(!a.equals(b))" statement to determine. The equals() method is used to compare the string with the specified Object comparison, returns true if the given object is equal to the string; otherwise returns false.
    JavaBase 3567 2019-12-24 15:47:51
  • Solution to java output Chinese garbled characters to html
    Solution to java output Chinese garbled characters to html
    Solution to Java outputting Chinese garbled characters to HTML: 1. Use the response.setHeader() method to specify the HTML encoding format, and then use the getOutputStream() method to write the specified encoding format data. 2. Use the getWriter() method to write data.
    JavaBase 2590 2019-12-24 15:36:22
  • How to solve java garbled code in eclipse
    How to solve java garbled code in eclipse
    Solution to java garbled code in eclipse: 1. Change the encoding format of the entire file type. 2. Change the encoding format of the entire Eclipse workspace. 3. Change the console encoding format. 4. Change the encoding format of a single file.
    JavaBase 2828 2019-12-24 15:17:06
  • Introduction to several common errors in Java
    Introduction to several common errors in Java
    Common errors in Java: 1. Null pointer error, solution: add protection, and judge when the element is not null. 2. Copy the string multiple times. 3. There is no object returned by clone. 4. Copy wrong data.
    JavaBase 4597 2019-12-23 15:43:28

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!