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 update java
- How to update java: First click on the Start menu - select java for all programs; then find check for update and open the java control panel; finally click [Update] - [Update Now].
- JavaBase 27465 2019-11-14 14:09:44
-
- How to jump out of if in java
- How to break out of if in java: first add a sign here in front of the if statement, such as "here: if(...){...}"; then use the "break here;" statement inside the if to jump out of if .
- JavaBase 8724 2019-11-14 13:56:35
-
- How to write functions in java
- How to write a java function: The format of defining a function is "access modifier return value function name (formal parameter) {}". For example, a function that finds the sum of two numbers can be defined as "public int sum(n1, n2) {return n1 + n2;}".
- JavaBase 4022 2019-11-14 13:38:53
-
- What is Java interface
- A Java interface is a declaration of a series of methods and a collection of method characteristics. An interface only has the characteristics of the methods but not the implementation of the methods. Therefore, these methods can be implemented by different classes in different places, and these implementations can have different behaviors ( Function).
- JavaBase 3054 2019-11-14 13:35:30
-
- How to use == in java
- Usage of == in Java: 1. Use the if statement as a judgment condition, such as "if (1 == 1)"; 2. Use it in the ternary operator, such as "1 == 2? "true" : "false ";".
- JavaBase 4113 2019-11-14 13:23:20
-
- java custom error exception
- How to customize error exceptions in Java: 1. Define a MyException class that inherits from Exception, and pass the error to the Exception constructor through the super keyword in the constructor; 2. Throw the exception yourself through the throw keyword.
- JavaBase 5381 2019-11-14 11:59:50
-
- How to upload files in java
- There are three ways to upload files in Java: upload files through streams, upload files using the file.transfer method provided by multipart, and upload files using the class method provided by spring mvc.
- JavaBase 3493 2019-11-14 11:58:27
-
- How to implement serialization in java
- To implement serialization in java, you need to have a class implement the Serializable interface. This interface is an identifying interface that marks the object of this class as being serializable. Then use an output stream to construct an object output stream and pass writeObject(Object obj) method can write out the implementation object.
- JavaBase 2590 2019-11-14 11:47:16
-
- Java project jsp error report
- Solution to jsp error in java project: 1. Add the relevant dependencies of javax.servlet in the pom.xml configuration file; 2. Right-click the build path of the project to find Server Runtime, select a server lib, and click OK.
- JavaBase 3745 2019-11-14 11:25:23
-
- The difference between js this and java
- The difference between this in js and this in java is: this in js points to whoever called the function, and this in the function points to the window by default; this in java represents a reference to the current object, that is, it points to the new object itself.
- JavaBase 2544 2019-11-14 11:14:46
-
- How to write java in linux
- How to write java in linux: 1. Download the appropriate linux version jdk; 2. Create the /usr/java directory and unzip the jdk; 3. Modify the /etc/profile configuration environment variable; 4. Use vim to write java code; 5. Use javac compiles and runs using the java command.
- JavaBase 4620 2019-11-14 10:54:27
-
- Is then a java keyword?
- Then is not a keyword in Java, nor is it a reserved word in Java. then is a keyword in other programming languages, such as the scripting language shell and Microsoft's Visual Basic language.
- JavaBase 4099 2019-11-14 10:37:27
-
- How to set path in java?
- How to set the path for java: First, right-click My Computer-Properties-Advanced-Environment Variables-System Variables; then select "New" in the system variable option; then add the java bin path to the path.
- JavaBase 4029 2019-11-14 10:31:51
-
- What should I do if the system cannot find java?
- The solution to the problem that the system cannot find java: First find the jdk directory and copy the jdk top-level directory; then open the system properties and select the system environment variable settings; then add a system variable "JAVA_HOME" and paste the jdk directory.
- JavaBase 5969 2019-11-14 10:19:59
-
- What are java collections
- There are two major categories of Java collections: List and Set, both of which implement the Collection interface. List includes ArrayList, Vector and LinkedList; Set includes HashSet and TreeSet.
- JavaBase 3440 2019-11-14 10:10:40