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:
-
- What format is java
- Java is a programming language launched by Sun Microsystems. The .java format file is the source code file of java. Java has the characteristics of cross-platform and dynamic web, and is widely used in personal PCs, data centers, scientific supercomputers and other fields.
- JavaBase 4176 2019-11-16 16:50:45
-
- What is initialization in java
- Initialization in Java refers to the process of assigning an initial value to a variable. For example, "String php = "good";" means to assign the initial value good to the variable php. The purpose of initialization is to make the variable have a value and prevent exceptions when using it.
- JavaBase 4361 2019-11-16 16:29:38
-
- What is an object reference in java
- A reference to a Java object refers to a "class" type variable pointing to a created object. For example, Hero h = new Hero(), h is a reference to the object new Hero().
- JavaBase 6308 2019-11-16 16:18:03
-
- How to receive keyboard input data in java
- How to receive keyboard input data in java: First, you need to import the Scanner class, and then create a Scanner class object to receive keyboard input data. Finally, you can call the corresponding method of the object to extract data from it.
- JavaBase 6774 2019-11-16 16:06:13
-
- There are several types of java entry functions
- There is only one java entry function, which must meet these conditions: 1. Modified with public static; 2. The method name is main; 3. The parameter is an array of String type. If these conditions are not met, it cannot be used as an entry function in Java.
- JavaBase 4584 2019-11-16 16:04:20
-
- Where is the java control panel?
- The java control panel is in the windows control panel. If jre is installed, the windows control panel will have a java icon. Double-click this icon to bring up the java control panel.
- JavaBase 11089 2019-11-16 15:40:06
-
- The difference between class methods and instance methods in java
- The difference between class methods and instance methods in Java: Class methods are assigned memory addresses when loading a class, so they can be called by any object after loading and can be called directly through the class name, while instance methods need to create an object before they are assigned memory address.
- JavaBase 4727 2019-11-16 15:12:09
-
- What are the commonly used methods in java
- Commonly used methods in Java are: 1. trim(), the trim() method is used to remove the leading and trailing whitespace characters of a string; 2. split(), the split() method splits characters according to matching a given regular expression String; 3. substring(), substring() method returns the substring of the string.
- JavaBase 8037 2019-11-16 15:00:19
-
- The difference between method reference and method call in java
- The difference between method reference and method call in Java is: Method reference returns the implementation of the interface, but method call returns the return value of the method.
- JavaBase 4570 2019-11-16 14:45:32
-
- When running the java program, it prompts that the main class cannot be found or cannot be loaded.
- The reason why java prompts that the main class cannot be found or cannot be loaded: by default, the java instruction searches for the address of the class file through the directory specified in the CLASSPATH environment variable. Solution: Add ".;" to the CLASSPATH environment variable.
- JavaBase 3482 2019-11-16 14:31:42
-
- Garbled characters appear in the java console
- The reason why garbled characters appear in the Java console: The encoding of the console defaults to the encoding of the operating system, such as GBK. Solution: Since the encoding of Java resources is utf8, you only need to specify the encoding of the console as utf8.
- JavaBase 4189 2019-11-16 14:14:24
-
- What are the commonly used classes in java
- Commonly used classes in Java are: 1. String class; 2. StringBuffer class; 3. Random class, used to return a pseudo-random number; 4. Date class, the Date class represents the date; 5. Timer class, the Timer class represents the timing class .
- JavaBase 3863 2019-11-16 13:49:50
-
- What are the data types in java
- There are two main types of data types in Java, namely basic data types (integer, floating point, character, Boolean) and reference data types (classes, interfaces, arrays).
- JavaBase 5059 2019-11-16 13:34:07
-
- How to import excel files in java
- How to import excel files in java: first download the POI resource package, then copy the jar package to the lib of the project and configure the compilation path, and finally add a reference to the java file to read the excel file.
- JavaBase 6780 2019-11-16 13:13:15
-
- How to assign value to array in java
- In Java, you can use the "=" symbol to assign a value to an array, for example: "arr[0]=1", where 0 represents the first element with index 0 in the array, and 1 represents the first element in the array The value of the element is 1.
- JavaBase 12064 2019-11-16 11:56:17