current location:Home > Technical Articles > Java > JavaBase

  • Java determines whether the date is legal
    Java determines whether the date is legal
    In java, you can first use SimpleDateFormat to specify the date format, and then use the setLenien(false) method to strictly parse the date, and determine whether the date is legal by checking whether an exception is thrown.
    JavaBase 4029 2019-12-27 10:00:24
  • What are the unique collections in java?
    What are the unique collections in java?
    Unrepeated collections in Java: 1. Set collection. The methods to implement set collections include hashSet, linkedHashSet, and treeSet. 3. Map collection, in which keys are not allowed to be repeated, but values ​​can be repeated.
    JavaBase 21282 2019-12-27 09:47:13
  • How to import jar package in java project
    How to import jar package in java project
    How to import the jar package in the java project: Create a new folder in the java project and save the jar package, then right-click the jar package and select "Build Path" - "Add to Build Path".
    JavaBase 12215 2019-12-27 09:32:13
  • What is java swing?
    What is java swing?
    Swing is a development toolkit (GUI toolkit) for developing Java application user interfaces and is part of the JAVA basic class; it includes graphical user interface (GUI) devices such as: text boxes, buttons, separated panes and surface.
    JavaBase 6816 2019-12-26 18:04:05
  • What does reflection in java mean?
    What does reflection in java mean?
    Reflection is a mechanism for indirectly operating on target objects. The Java reflection mechanism is that when a Java program is running, for any class, all properties and methods of the class can be known; for any object, any method of it can be called. This function of dynamically obtaining and calling object methods is called the reflection mechanism of the Java language.
    JavaBase 3431 2019-12-26 17:54:46
  • What is the difference between js and java?
    What is the difference between js and java?
    Differences: 1. Java is an object-oriented language, and JavaScript is a scripting language, which is an object- and event-driven language. 2. Java uses static binding; Js uses dynamic binding.
    JavaBase 8563 2019-12-26 17:31:24
  • What is java concurrency?
    What is java concurrency?
    Concurrency refers to the alternate execution of multiple tasks within a certain period of time. When multiple threads are operating, the CPU running time is divided into several time periods, and then the time periods are allocated to each thread for execution. While one thread's code is running, other threads are suspended.
    JavaBase 3922 2019-12-26 17:13:06
  • What are the classes that cannot be inherited in Java?
    What are the classes that cannot be inherited in Java?
    Classes marked final in Java are final classes and cannot be inherited, such as public, final, and String. When final is used to modify a class, it means that the class cannot be inherited.
    JavaBase 5120 2019-12-26 16:34:05
  • How to implement delay in java
    How to implement delay in java
    Methods to implement delay in java: 1. Use the Timer class to implement it. The schedule method of the Timer class can execute the program according to the time plan. 2. Use the Thread class, and ordinary delays can be implemented using the Thread.sleep(int) method.
    JavaBase 8116 2019-12-26 16:17:47
  • Solution to Chinese garbled characters when running java using cmd
    Solution to Chinese garbled characters when running java using cmd
    Solution to Chinese garbled characters when cmd runs java: 1. Use the "chcp 65001" command in cmd to set the cmd encoding to utf-8. 2. Specify the encoding method when executing java in cmd.
    JavaBase 16806 2019-12-26 15:32:05
  • How to determine whether strings are equal in java
    How to determine whether strings are equal in java
    How to determine whether strings are equal in Java: 1. Use "==" to determine whether strings are equal. 2. Use the equals method to determine whether strings are equal. The equals method cannot be used on variables of basic data types.
    JavaBase 23448 2019-12-26 14:57:02
  • The difference between java character stream and byte stream
    The difference between java character stream and byte stream
    The difference between java character stream and byte stream: 1. When reading and writing, one reads and writes by bytes, and the other reads and writes by characters. 2. The ones ending with stream are both byte streams, and the ones ending with reader and writer are both character streams.
    JavaBase 5497 2019-12-26 14:40:59
  • What is an identifier in java
    What is an identifier in java
    Identifiers in Java are names used by users when programming. They are used to name variables, constants, functions, statement blocks, etc. Java identifiers consist of numbers, letters and underscore (_), dollar sign ($).
    JavaBase 3302 2019-12-26 14:26:57
  • How to create a thread in java
    How to create a thread in java
    How to create a thread in java: 1. Create a thread by inheriting the Thread class. 2. Create a thread by implementing the Runnable interface. 3. Use Callable and Future to create threads.
    JavaBase 5513 2019-12-26 14:11:37
  • Several common exceptions in java
    Several common exceptions in java
    Several common exceptions in Java: 1. Null pointer exception class. 2. Data type conversion exception. 3. No access rights. 4. The parameters of the method are wrong. 5. Array subscript out-of-bounds exception. 6. File not found exception. 7. The specified class does not exist. 8. Instantiation exception.
    JavaBase 7158 2019-12-26 14:01:17

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