current location:Home > Technical Articles > Java > Javagetting Started
- 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:
-
- When compiling java code, an error message cannot be found.
- When compiling java code, an error is reported: Symbol not found. The reason is that the related class is used in the java code but is not referenced in the code. The solution is: first check for unreferenced specific related classes, and then reference this class at the head of the code.
- Javagetting Started 6722 2019-11-22 14:54:25
-
- How to create a java package using eclipse
- The method to create a java package using eclipse is: first select the package option in the file menu, then enter the resource folder name and package name in the wizard pop-up box, and finally select finish to create successfully.
- Javagetting Started 5831 2019-11-21 17:46:42
-
- Solution to missing package error in java project
- The solution to the missing package error in the Java project: first switch to the Java view, then view the missing Java classes, locate the jar package based on the missing Java classes, and finally configure the build path and add the external jar package.
- Javagetting Started 5931 2019-11-21 17:34:21
-
- What are the methods of Object class in java
- The methods in the Object class in Java are: 1. "clone()" method, a protection method, which implements shallow copying of objects; 2. "getClass()" method, which obtains the runtime type; 3. "finalize()" method , this method is used to release resources.
- Javagetting Started 3902 2019-11-21 17:14:05
-
- What is an exception that is not thrown in java
- The exceptions that are not thrown in Java are: "RuntimeException" and its subclasses, such as: Null pointer exception "NullPointerException" and subscript out-of-bounds exception "IndexOutOfBoundsException".
- Javagetting Started 2946 2019-11-21 16:59:56
-
- How java files are run
- The method to run a java file is: first prepare a JDK, then add the JDK's bin directory to the PATH environment variable, then open the command line and run the javac command to compile the java file, and finally use the java command to execute the compiled java file.
- Javagetting Started 6118 2019-11-21 16:28:31
-
- When compiling java, it prompts that javac cannot find the file.
- The solution to the problem that javac cannot find the file when compiling java: first switch to the storage path of the java class through the cd command, and then compile the java file. If there is a compilation error, modify the java class code according to the error message, and finally re-run the java file.
- Javagetting Started 3421 2019-11-21 10:58:48
-
- The difference between i++ and ++i in java
- The difference between "i++" and "++i" in Java is: "i++" assigns the value first and then operates; "++i" operates first and then assigns the value. For example: "b = a++" means to first assign the value of a to b, and then calculate +1; "c = ++a" means to first calculate the value of a + 1, and then assign the value of a to c.
- Javagetting Started 3887 2019-11-21 10:45:13
-
- What does '=' in java mean?
- The symbol "=" in Java has two meanings. For variables, the symbol "=" has the function of assignment. For example: "a=3" means assigning 3 to a; for reference objects, the symbol "=" has the function of assignment. The function of passing by reference, for example: "a=b", means to point the pointer of object a to the address of object b.
- Javagetting Started 5993 2019-11-21 10:24:11
-
- The difference between '/' and '%' in java
- The difference between the operators "/" and "%" in Java is: "%" is the modulo operator, which performs remainder operations, while "/" is the division operator, which performs simple division operations. For example: "13/5", the result is the integer 2, and "13%5", the result is the integer 3.
- Javagetting Started 8625 2019-11-21 10:10:26
-
- What are the common locks in Java?
- Common locks in Java are: 1. Fair lock, which refers to multiple threads acquiring locks in the order in which they apply for locks; 2. Unfair lock, which refers to the order in which multiple threads acquire locks; 3. Exclusive lock, which refers to the lock once Can only be held by one thread; 4. Shared lock means that the lock can be held by multiple threads.
- Javagetting Started 8269 2019-11-20 17:43:34
-
- What does a reference in java mean?
- A reference in Java refers to an alias of an existing object. A reference can only be bound to an object, and cannot be bound to a literal value or the calculation result of an expression.
- Javagetting Started 7772 2019-11-20 16:48:34
-
- Choose java development or embedded development
- Both Java development and embedded development are relatively common development positions in the IT industry. Java is mainly used in web development, android development, etc., while embedded development is mainly used in the field of Internet of Things development. Both are good choices.
- Javagetting Started 2687 2019-11-20 15:04:13
-
- Several methods to get class name in java
- The method of obtaining the class name in Java is: 1. "getName()" returns the class name representation of the class in the virtual machine; 2. "getSimpleName()" returns the abbreviation of the class; 3. "getCanonicalName()" returns the easier to understand The class name represents.
- Javagetting Started 4494 2019-11-20 14:47:55
-
- How to output data in java
- To output data in Java, you can use the "System.out.println()" statement. This statement is the most commonly used output statement. This statement converts the content in parentheses into a string and outputs it to the console, and wraps the line.
- Javagetting Started 6560 2019-11-20 13:26:12