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

  • How to define a class in java
    How to define a class in java
    To define a class in Java, you need to use the class keyword, a custom class name, and a pair of braces to represent the program body. Class is an important reference data type in Java and is also the basic element of Java programs, because all Java programs are based on classes.
    Javagetting Started 4009 2019-11-13 10:37:16
  • How to inherit in java
    How to inherit in java
    Java uses the extends keyword for inheritance. Inheritance is the relationship between classes. It is a very simple and intuitive concept, similar to inheritance in the real world (for example, a son inherits his father's property). Inheritance can be understood as the process by which one class obtains methods and properties from another class.
    Javagetting Started 3736 2019-11-13 10:27:04
  • How to install and open java
    How to install and open java
    How to install and open java: first search for jdk download on Baidu; then enter the download page, click [accept license] and select the corresponding [windowsx86] software to download; then open the software to install; finally configure the environment variables and run cmd input java is enough.
    Javagetting Started 4583 2019-11-13 10:26:14
  • How to execute java program
    How to execute java program
    How to execute java: First create a notepad and enter the java code; then save the notepad as helloworld.java; then run cmd; finally enter "java helloworld" and press Enter to run.
    Javagetting Started 2360 2019-11-13 10:15:03
  • What is proxy in java
    What is proxy in java
    The proxy in java is the Proxy Pattern, one of the 23 commonly used design patterns in java. Definition of proxy pattern: Provide a proxy for other objects to control access to this object.
    Javagetting Started 3829 2019-11-13 09:56:27
  • What does instance mean in Java?
    What does instance mean in Java?
    The new object in Java is called an instance. To put it bluntly, it is the "thing" created by new. You can call it an object or an instance. Objects and instances are equivalent from this perspective.
    Javagetting Started 3886 2019-11-13 09:42:26
  • what are java events
    what are java events
    The Java event mechanism consists of three parts: events, event sources, and event listeners. Events generally inherit from the java.util.EventObject class. The event source is where the event occurs. Event listeners implement the java.util.EventListener interface.
    Javagetting Started 9563 2019-11-13 09:38:05
  • Java generates non-repeating random numbers
    Java generates non-repeating random numbers
    To make the generated random numbers non-repetitive in Java, you can put the generated random numbers into an array. Each time a random number is generated, compare it with the contents of the array to see if it is equal. If it is equal, it will be regenerated. If it is not equal, it will be stored in the array.
    Javagetting Started 2173 2019-11-13 09:34:49
  • How does java code run
    How does java code run
    From the perspective of the virtual machine, executing Java code first requires loading the compiled class file into the Java virtual machine. The loaded java class will be stored in the method area. When actually running, the virtual machine executes the code in the method area.
    Javagetting Started 2007 2019-11-13 09:24:28
  • what is java thread pool
    what is java thread pool
    Thread pools are a form of multi-threading in which tasks are added to a queue and then automatically started when threads are created. There are many benefits of using a thread pool, such as saving system resource overhead, saving time in creating and destroying threads, etc. When we need to process more tasks, we can use the thread pool.
    Javagetting Started 2525 2019-11-13 09:23:26
  • How to synchronize Java
    How to synchronize Java
    Since every object in Java has a built-in lock, when the method is modified with the synchronized keyword, the built-in lock will protect the entire method. Before calling the method, you need to obtain the built-in lock, otherwise it will be blocked. The statement block modified by this keyword will automatically be added with a built-in lock to achieve synchronization.
    Javagetting Started 3426 2019-11-12 17:59:20
  • How to serialize in java
    How to serialize in java
    First create an object and implement the Serializable interface, and then use the object stream to write a tool class for saving and reading objects.
    Javagetting Started 2570 2019-11-12 17:44:30
  • How to escape in java
    How to escape in java
    Java's method of escaping: Add "\" before the character that needs to be escaped to escape, so that the character has different semantics than when the character appears alone; for example: "\0" means a null character, " \t" represents horizontal tabulation, "\n" represents line feed, "\r" represents carriage return, "\b" represents backspace, etc.
    Javagetting Started 16340 2020-10-21 10:50:55
  • What is factory pattern in java
    What is factory pattern in java
    There are three types of factory method patterns: ordinary factory pattern, which is to establish a factory class and create instances of some classes that implement the same interface. The multiple factory method pattern is an improvement on the ordinary factory method pattern. The static factory method pattern makes the methods in multiple factory method patterns static. There is no need to create an instance and can be called directly.
    Javagetting Started 3257 2019-11-12 17:16:22
  • What is an abstract class in java
    What is an abstract class in java
    Methods modified by abstract are called abstract methods; classes modified by abstract are called abstract classes. An abstract class cannot be instantiated because it is not a concrete class, or such a class is not complete enough to directly use the new keyword to call its constructor to generate an object of this class.
    Javagetting Started 5736 2019-11-12 17:04:06

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