current location:Home > Technical Articles > Java > JavaBase

  • How to create a class in Java
    How to create a class in Java
    The general format for creating a class in Java is: modifier class class name {member}. The modifier is optional, the class keyword must exist, the first letter of the class name must be capitalized, and the name must be based on camel case naming rules.
    JavaBase 10411 2019-11-12 11:02:43
  • How to get the day of the week of the current date in java
    How to get the day of the week of the current date in java
    How to get the day of the week of the current date in java: first create a getWeekOfDate function and receive a Date type parameter; then use the Calendar class inside the function to get the number of days in the week today; and finally subtract 1 from the number of days obtained.
    JavaBase 5496 2019-11-12 10:57:19
  • What are the basic data types in Java
    What are the basic data types in Java
    The basic data types in Java are: 1. Integer type (byte, short, int, long); 2. Floating point type (float, double); 3. Character type (char); 4. Boolean type (boolean).
    JavaBase 12371 2019-11-12 10:44:49
  • How to write the path of a file in java
    How to write the path of a file in java
    How to get the file path: 1. Get the resource path "this.getClass().getResource("").getPath();"; 2. Get the file compilation path "this.getClass().getResource("/").getPath ();"etc.
    JavaBase 3111 2019-11-12 10:38:24
  • The difference between java static methods and non-static methods
    The difference between java static methods and non-static methods
    The differences between Java static methods and non-static methods are: 1. Static methods are loaded into memory when the class is loaded and will not be automatically destroyed; 2. Non-static methods are allocated memory after instantiation and are destroyed after the instance is recycled; 3. Static methods Methods can be called using "class name. method name"; 4. Non-static methods need to create an instance first and then call it, etc.
    JavaBase 5957 2019-11-12 10:24:38
  • How to compare strings in java
    How to compare strings in java
    Java provides us with compareTo, "==", and equals to compare strings, using equals() and ==. The difference is that equals compares whether the contents are equal, and == compares whether the referenced variable addresses are equal.
    JavaBase 9515 2019-11-12 10:17:37
  • what is java api
    what is java api
    Java API is a standard class library provided by Java itself. For example, the "System.out.println()" printing function is a method implemented by Java itself. The api has detailed introductions to various classes, as well as various methods, including construction methods and common methods. Its essence is a dictionary of the Java language.
    JavaBase 5563 2019-11-12 10:11:26
  • what is java instantiation
    what is java instantiation
    Java instantiation is the process of creating an object using the new keyword. For example, "new Persion()" means instantiating a Persion object. The brackets at the end of Persion mean that the constructor of the Persion class is immediately called for initialization.
    JavaBase 6472 2019-11-12 09:55:09
  • How to debug java program in eclipse
    How to debug java program in eclipse
    The method of using eclipse to debug a Java program is: 1. Set a breakpoint at the location that needs to be debugged; 2. Click Debug; 3. Run the program; 4. Enter the debugging interface to view the information.
    JavaBase 4241 2019-11-12 09:51:11
  • what is java thread
    what is java thread
    A thread in Java refers to an instance of the java.lang.Thread class or the execution of a thread. You can use the java.lang.Thread or java.lang.Runnable interface to write code to define, instantiate, and start new threads.
    JavaBase 2834 2019-11-12 09:40:21
  • what is stream in java
    what is stream in java
    Stream in Java is an abstract concept. When the program needs to read data from a certain data source, it will start a data stream. The data source can be a file, memory or network, etc.
    JavaBase 5458 2019-11-12 09:38:58
  • what is java exception handling
    what is java exception handling
    Java exception handling allows the program to handle exceptions in a targeted manner according to the code's preset exception handling logic when an exception occurs, so that the program can return to normal and continue execution as much as possible, while keeping the code clear.
    JavaBase 3787 2019-11-12 09:19:58
  • What exactly are enumerations in java?
    What exactly are enumerations in java?
    Enumeration in Java is a special data type. The reason why it is special is that it is a class type but has more special constraints than types. However, the existence of these constraints also makes the enumeration type simple. , safety and convenience.
    JavaBase 3423 2019-11-12 09:35:28
  • What is thread pool in java
    What is thread pool in java
    In Java, a thread pool is a form of multi-threading processing that adds tasks to a queue during processing and then automatically starts these tasks after the thread is created. Thread pool threads are background threads. Each thread uses the default stack size, runs at the default priority, and is in a multi-threaded apartment.
    JavaBase 2399 2019-11-12 09:38:16
  • Java prompts that the system cannot find the solution to the specified file
    Java prompts that the system cannot find the solution to the specified file
    Java prompts that the system cannot find the specified file because the file name or file suffix is ​​incorrect. Solution: 1. Check whether the file name is correct; 2. Check whether the file suffix is ​​correct.
    JavaBase 6320 2019-11-11 18:02:11

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