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:
-
- Java prompts that the system cannot find the solution to the specified path
- Java prompts that the system cannot find the solution to the specified path: 1. Check whether the file path is correct; 2. When using OutputStream, make sure that the folder must exist.
- JavaBase 11589 2019-11-11 17:57:41
-
- Java 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: The default address of the java instruction to find the class file is in the directory specified in the CLASSPATH environment variable. Solution: Use java package name + class name to execute.
- JavaBase 6018 2019-11-11 17:41:19
-
- How to open exe file in java
- How to open an exe file in java: You can use Runtime.getRuntime().exec() to call the server command script for execution. We only need to pass the path of the exe file to exec.
- JavaBase 3800 2019-11-11 17:32:39
-
- what is encapsulation in java
- Encapsulation in Java refers to a method of partially packaging and hiding the implementation details of an abstract functional interface. It can be considered as a protective barrier to prevent the code and data of this class from being randomly accessed by code defined by external classes.
- JavaBase 8263 2019-11-11 17:21:35
-
- How to get time in java
- How to get time in java: first introduce the java.util.Date and java.text.SimpleDateFormat packages; then create a SimpleDateFormat object; finally call the format method and pass in new Date to format and output the current time.
- JavaBase 5571 2019-11-11 17:13:26
-
- What are inner classes in java
- Inner classes in Java refer to classes defined inside a class. Inner classes can be divided into instance inner classes, static inner classes and member inner classes. Each inner class has its specific characteristics.
- JavaBase 3914 2019-11-12 09:32:54
-
- what is serialization in java
- Serialization in Java is the process of converting Java objects into byte sequences. It is a mechanism used to process object streams. Serialization is mainly used to permanently save the byte sequence of an object to the hard disk.
- JavaBase 4276 2019-11-12 09:33:50
-
- How to write files in java
- How to write a file in java: first create a FileWriter object; then use the write method of FileWriter to write data; finally use the close method of FileWriter to close it.
- JavaBase 5027 2019-11-11 16:35:52
-
- Steps to connect java to database
- Steps to connect the database in java: 1. Create a new java project and folder libs; 2. Add the package to connect to the database in the libs folder; 3. Build the jar package on the path; 4. Connect the database in the java project; 5. Analysis of the reasons for failure to connect to the database.
- JavaBase 20830 2019-11-12 09:34:37
-
- How to connect to database in java
- How to connect java to the database: 1. Download the mysql connection driver file; 2. Create a new java project and put the driver in it; 3. Add the driver jar file to the project Properties; 4. Use DriverManager to connect.
- JavaBase 18661 2019-11-11 16:16:40
-
- What is the use of this in java
- The functions of this in Java are: 1. Using this when initializing data in a class is beneficial to reading and understanding; 2. This can call methods; 3. This can represent the currently executing object.
- JavaBase 3534 2019-11-11 15:56:56
-
- What are the commonly used frameworks in Java?
- Commonly used frameworks in Java are: 1. SpringMVC, a lightweight web framework based on Java that implements the request-driven type of Web MVC design pattern; 2. Mybatis, an excellent persistence that supports ordinary SQL queries, stored procedures and advanced mapping. layer frame.
- JavaBase 8360 2019-11-11 15:43:54
-
- What does this refer to in java
- This in Java refers to a reference, which points to the object of itself. The this keyword is used in the class method definition to represent a reference to the object using the method. Sometimes this can be used to handle the situation where member variables and parameters in the method have the same name.
- JavaBase 7553 2019-11-11 15:36:23
-
- How to implement polymorphism in java
- The ways to achieve polymorphism in Java are: 1. Implement polymorphism through interfaces; 2. Implement polymorphism by inheriting parent classes and overriding methods; 3. Implement polymorphism by overloading methods in the same class.
- JavaBase 5217 2019-11-11 15:23:31
-
- The difference between equals and == in java
- The differences between equals and == in Java are: 1. == compares whether two references point to the same object in memory; 2. equals is commonly used to compare whether the contents in the object are equal; 3. The equals method is composed of Object Provided by a class and can be overridden by subclasses.
- JavaBase 4398 2019-11-11 15:18:51