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