current location:Home > Technical Articles > Java > Javagetting Started

  • When compiling java code, an error message cannot be found.
    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
    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
    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
    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
    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
    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.
    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
    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?
    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 '/' 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?
    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?
    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
    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
    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
    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

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28