current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Java determines whether it is a palindrome number
- How to determine the number of palindromes in Java: First, use Scanner to obtain the string input by the user; then create a StringBuffer character buffer object and use reverse to invert the string content; then use a for loop to detect the number that is the same as the corresponding position of the original string; finally, according to The same number can be judged.
- JavaBase 3665 2019-11-13 14:20:17
-
- How to determine whether an object is empty in java
- The method to determine whether an object is empty in Java is: first use object==null to determine. When the object is null, it returns true, otherwise it returns false. Then when object!=null is true, further determine whether all properties of the object are null.
- JavaBase 13710 2019-11-13 14:10:22
-
- How to close java program
- How to close a java program: First use Thread.currentThread() to get the current thread; then use the interrupt method to exit the program. If there are multiple threads in the program, you can use System.exit(0) to completely exit the program.
- JavaBase 8833 2019-11-13 14:06:24
-
- How to create a new java file
- How to create a new java: 1. Open the Eclipse program; 2. Click file-new-java project on the upper left to create a new project; 3. Click File-New-Package to create a new project package; 4. Right-click new- in the src folder on the left class can be used to create a class.
- JavaBase 9369 2019-11-13 13:50:23
-
- How to determine whether a character is a number in java
- The method to determine whether a character is a number in Java is: 1. Use the regular expression "[0-9]*" to check whether the character is a number; 2. Use the function Character.isDigit that comes with Java to determine whether the character is a number; 3. , use indexOf index to determine whether the character is a number.
- JavaBase 6208 2019-11-13 13:48:58
-
- What is a thread in java
- A thread in Java refers to an instance of the java.lang.Thread class or the execution of a thread. Use the java.lang.Thread or java.lang.Runnable interface to write code to define, instantiate, and start new threads.
- JavaBase 3174 2019-11-13 13:45:43
-
- what is java static
- Java static includes static variables, static methods, and static initialization blocks. Static variables belong to the entire class and are shared by all objects of the class; static methods can be called through the class name, and only static members of the class can be accessed in the method; static initialization blocks are executed when the class is loaded, and will only be executed once.
- JavaBase 3485 2019-11-13 13:39:14
-
- What is serialization in java
- Java serialization refers to the Java object data in the heap memory, which is stored in a disk file in some way, or passed to other network nodes (network transmission). This process is called serialization, which usually refers to the process of converting a data structure or object into binary.
- JavaBase 3470 2019-11-13 13:36:41
-
- How to determine what day of the week a specified date is in java
- The method to determine the day of the week for a specified date in Java is: 1. First define an array to store the date information; 2. Get the Calendar object to facilitate date and time operations; 3. Set the passed time into the Calendar object; 4. Print the date information.
- JavaBase 4396 2019-11-13 13:33:47
-
- What is io stream in java
- Java io streams are mainly used for data transmission. The streams are abstracted into various classes according to the data transmission characteristics to facilitate more intuitive data operations. Java io streams can be divided into character streams, byte streams, input and output streams, etc.
- JavaBase 3447 2019-11-13 13:19:13
-
- How to determine whether a certain year is a leap year in Java
- The way to determine whether a year is a leap year in Java is: first determine whether a year is a non-hundred year, and if it is a non-hundred year, then determine whether it is divisible by 4, and if it is a centenary, then determine whether it is divisible by 400. .
- JavaBase 4943 2019-11-13 13:17:21
-
- what is java program
- A java program is a computer program written in the java language. Its entry function is the main function. The .class file is generated by the compiler and executed through the jvm.
- JavaBase 5113 2019-11-13 11:53:02
-
- Example tutorial of calling interface in java
- The method of calling the interface in java: 1. First URL restURL = new URL(url); 2. setRequestMethod("POST"); 3. setDoOutput(true); 4. Create a stream to write or read the return value.
- JavaBase 4852 2019-11-13 11:50:51
-
- What to do if java characters are garbled
- The solution to garbled Java characters: first re-encode the string and then decode it; then set the encoding to "name=new String(name.getBytes(),"UTF-8");".
- JavaBase 2749 2019-11-13 11:38:50
-
- what is java proxy
- Java proxy does not access the target directly, but accesses it through an intermediate layer. In some cases, one object does not want or cannot directly reference another object, and the proxy object can act as an intermediary between the client and the target object. effect.
- JavaBase 4834 2019-11-13 11:37:37