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 call the other party's interface in java
- The method of calling the other party's interface in java is: first open the connection with the url, then set the general request attributes, then set whether to output to "httpUrlConnection" and whether to read from "httpUrlConnection", and finally disconnect the connection.
- JavaBase 3736 2019-11-15 15:15:29
-
- The difference between classes and methods in java
- The difference between classes and methods in Java is: a class is a template for an object, a collection of objects with the same attributes and methods. A class does not exist and is used to describe object information; a method is used to solve something Or a way to implement a certain function.
- JavaBase 10060 2019-11-15 14:57:54
-
- How does java allocate memory?
- The memory allocation situation in Java is: the heap area stores the object itself and the array itself; the stack area stores references to the basic data type itself and custom objects; the method area stores all class and static variables.
- JavaBase 2977 2019-11-15 14:35:34
-
- Java determines whether database table exists
- The method to determine whether a database table exists in Java is: first establish a JDBC data source, and then determine whether the database table exists through the Java.sql.DatabaseMetaData interface. It should be noted that parameter names must be in uppercase during use.
- JavaBase 3875 2019-11-15 14:25:08
-
- Java intercepts the last few characters of a string
- The method for java to intercept the last few characters of a string is: you can use the "substring(int from, int to)" method provided by the String class. First get the length of the string, and then use the length -n of the string as the third element of the substring method. Just one parameter.
- JavaBase 12965 2019-11-15 14:09:40
-
- How to enter data in java program
- Java programs generally use the Scanner class to input data. For example: "Scanner in = new Scanner(System.in)", this means creating a Scanner, the console will wait for an input until the Enter key is pressed, and the input content will be used as the scan object.
- JavaBase 5307 2019-11-15 13:55:06
-
- How to understand distributed systems in java
- To understand the distributed system in Java, you need to understand the following two aspects: 1. A distributed system must be a system composed of multiple nodes, and these nodes are interconnected; 2. Our nodes are deployed on these interconnected nodes, and they are interconnected. The operations will be coordinated.
- JavaBase 3543 2019-11-15 13:21:46
-
- java cannot compile
- Solution to the problem that java cannot be compiled: 1. Edit the system variable Path and add the jdk\bin directory; 2. Use the editor to convert the java file encoding to utf-8, and use -encoding utf-8 to specify the encoding format when compiling. .
- JavaBase 4570 2019-11-15 13:16:31
-
- java compression garbled code
- Solution to Java compression garbled characters: Java's built-in compressed file API will cause garbled characters. We can use the ZipOutputStream class of apache-ant.jar to compress files. Specifically, use "zos.setEncoding("gbk");" to set the encoding. Just format.
- JavaBase 2429 2019-11-15 11:50:16
-
- What are the common exceptions in java
- Common exceptions in Java include: 1. Null pointer exception; 2. Exception does not exist in the specified class; 3. Mathematical operation exception; 4. Array subscript out-of-bounds exception; 5. Method parameter error exception; 6. Access permission exception, etc.
- JavaBase 10271 2019-11-15 11:31:54
-
- What is java written in?
- JAVA itself is a programming language, and the files generated by it are compiled and run on the JVM. JVM is developed by C language and assembly language. Based on this is Java. The virtual machine plays the role of parsing and execution.
- JavaBase 4320 2019-11-15 11:23:38
-
- Is java interface a class?
- Java interfaces are not classes because classes are defined using the class keyword and interfaces are defined using interface. Moreover, a class is a template, which describes the behavior and status of a type of object; an interface is a declaration of a series of methods and a collection of method characteristics.
- JavaBase 2943 2019-11-15 11:08:17
-
- Common syntax errors in java
- Java syntax errors include: 1. The variable may not be initialized; 2. The variable is repeatedly defined; 3. The symbol cannot be found; 4. The method cannot be found; 5. The class cannot be found; 6. The array subscript is out of bounds. Error; 7. String subscript out-of-bounds error, etc.
- JavaBase 6353 2019-11-15 11:03:52
-
- How to determine whether an object is null in java
- Java can use object == null to determine whether the object is null. It returns true when the object is null and false when it is not null. When object != null is true, further determine whether all properties of the object are null.
- JavaBase 6172 2019-11-15 10:55:34
-
- Java determines whether an object is an array
- Java can use the isArray method of the array to determine whether the object is an array. The return value is of Boolean type. If the object passed in is an array, it returns true. If it is not an array, it returns false.
- JavaBase 3793 2019-11-15 10:45:23