current location:Home > Technical Articles > Java > JavaBase

  • How to implement array initialization in java
    How to implement array initialization in java
    Methods to implement array initialization in Java: 1. Dynamic initialization, format [data type [ ] array name = new data type [array length]]; 2. Static initialization, format [data type [ ] array name = new data type [ ] { Element 1, Element 2, Element 3...}].
    JavaBase 48266 2020-10-22 10:52:02
  • Convenient statistical order income (1)
    Convenient statistical order income (1)
    The java basic tutorial column will show you how to conveniently count order income.
    JavaBase 2227 2020-10-21 17:22:37
  • How to call method of another class in java
    How to call method of another class in java
    Java calls a method of another class: 1. The class method is modified with static, and the code is [public static void sayStatic()]; 2. The method without static modification, the code is [public void sayInstance()].
    JavaBase 35395 2022-01-12 15:38:28
  • How to display java error information on the page
    How to display java error information on the page
    The method for displaying Java error information on the page: first customize the exception class; then throw the exception class in the service layer, and the controller class inherits the main exception class; then define the main exception class, in which you can write multiple self-defined exception classes; Finally complete the information code.
    JavaBase 5374 2020-10-21 09:52:21
  • Finally here...RocketMQ Literacy Chapter
    Finally here...RocketMQ Literacy Chapter
    The java basic tutorial column introduces the knowledge about RocketMQ in detail today.
    JavaBase 3059 2020-10-20 17:16:39
  • Detailed jdk8 installation tutorial
    Detailed jdk8 installation tutorial
    How to install jdk8: first double-click the exe file and install it step by step according to the default settings; then right-click "This Computer-Properties-Advanced System Settings-Advanced-Environment Variables-New"; then create a new environment variable JAVA_HOME; finally configure the environment variables Path is enough.
    JavaBase 47252 2020-10-20 16:21:59
  • How to view java class files
    How to view java class files
    How to view java class files: first download the [jd-gui] tool and unzip it; then in the tool interface that opens, click File and open File in the upper left corner; finally select to open the class file.
    JavaBase 5464 2020-10-20 11:02:46
  • Garbled code problem in java char array output
    Garbled code problem in java char array output
    Solution to garbled output of java char array: initialization is required when declaring the array, the code is [char buf[] = new char[200];for(int i = 0; i < 200; i++){buf[i] = ' 0';}】
    JavaBase 3101 2020-10-20 10:50:05
  • How many bytes does the boolean type occupy in Java?
    How many bytes does the boolean type occupy in Java?
    The boolean type in Java occupies bytes: 1. 1 bit. The reason is that the value of the boolean type only has two logical values: true and false. After compilation, it will be represented by 1 and 0; 2. 1 byte. The reason is that although After compilation, 1 and 0 only occupy 1 bit of space, but the smallest unit of data processed by the computer is 1 byte.
    JavaBase 7611 2020-10-20 10:43:11
  • How many numbers does java int have?
    How many numbers does java int have?
    Java int is 4 bytes, 32 bits. The value range of int is [-2^31-2^31-1], that is, [-2147483648-2147483647]. For positive numbers, its complement is Itself, for a negative number, its complement is the inversion of all the bits of the binary number of the corresponding positive number plus one.
    JavaBase 14518 2020-10-20 10:37:16
  • How to convert Chinese garbled characters in Java
    How to convert Chinese garbled characters in Java
    Method for converting java Chinese garbled code: first use the editor to write the java source file; then use [javac.exe] to compile the java file, and use JDK to write the compiled and saved information in the memory into the class file; finally run the compiled class .
    JavaBase 4311 2020-10-20 10:26:37
  • What to do if the java -version command reports an error
    What to do if the java -version command reports an error
    Solution to the error reported by the java -version command: First open the [Windows\System32] and [Windows\SysWOW64] folders in the C drive; then find the [java.exe], [javaw.exe], and [javaws.exe] files and delete them That’s it.
    JavaBase 4288 2020-10-20 10:19:50
  • Solve a bug caused by i++
    Solve a bug caused by i++
    The java basic tutorial column introduces bugs caused by i++.
    JavaBase 1741 2020-10-19 17:40:41
  • Let's talk about kotlin's covariance and contravariance from Java
    Let's talk about kotlin's covariance and contravariance from Java
    The java basic tutorial column introduces kotlin's covariance and contravariance today.
    JavaBase 2017 2020-10-13 11:14:23
  • Java High Concurrency System Design - Cache
    Java High Concurrency System Design - Cache
    The java basics column today introduces the caching chapter of java high concurrency system design.
    JavaBase 2149 2020-10-10 17:24:49

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