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 inserts mysql garbled code
- Solution to java inserting garbled characters into mysql: 1. Specify the character set as utf-8 on the front-end page; 2. Use setCharacterEncoding to set the encoding format when receiving parameters in the background; 3. Use the parameter "characterEncoding=utf8" when connecting to the database.
- JavaBase 2086 2019-11-15 16:23:47
-
- java program development steps
- The development steps of a Java program are: 1. Analyze what the class should do; 2. List instance variables and methods; 3. List methods and pseudocode; 4. Write test programs for methods; 5. Implement classes; 6. Test Method; 7. Debug or redesign.
- JavaBase 13659 2019-11-15 16:16:10
-
- How to use java code
- Usage of java code: java code needs to be compiled using a compiler to generate class files in order to be executed correctly. First, we can use the eclipse software to import the java project; then set the encoding of the file; and finally click the run button of eclipse.
- JavaBase 4931 2019-11-15 16:01:26
-
- What are collections in java
- Collections in java include: 1. List collection (ArrayList collection, Vector collection, LinkedList collection); 2. Set collection (Hashset collection, Treeset collection).
- JavaBase 8509 2019-11-15 15:40:54
-
- The difference between interface and class in java
- The difference between interfaces and classes in Java is: 1. Interfaces are a collection of abstract methods, and classes are used to describe the properties and methods of objects; 2. All properties in interfaces are "public static final", and classes are public by default. of.
- JavaBase 4743 2019-11-15 15:26:41
-
- 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 3817 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 10133 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 3094 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 4092 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 13161 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 5372 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 3608 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 4654 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 2498 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 10419 2019-11-15 11:31:54