current location:Home > Technical Articles > Java > JavaBase

  • 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
    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
    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 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
    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
    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
    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
    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 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 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 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
    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?
    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
    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
    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 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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!