current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- 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)
- 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
- 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
- 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
- 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
- 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: 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
- 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?
- 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?
- 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
- 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
- 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++
- 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
- 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
- The java basics column today introduces the caching chapter of java high concurrency system design.
- JavaBase 2149 2020-10-10 17:24:49