current location:Home > Technical Articles > Java > JavaBase
- 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:
-
- Java determines whether the date is legal
- In java, you can first use SimpleDateFormat to specify the date format, and then use the setLenien(false) method to strictly parse the date, and determine whether the date is legal by checking whether an exception is thrown.
- JavaBase 4029 2019-12-27 10:00:24
-
- What are the unique collections in java?
- Unrepeated collections in Java: 1. Set collection. The methods to implement set collections include hashSet, linkedHashSet, and treeSet. 3. Map collection, in which keys are not allowed to be repeated, but values can be repeated.
- JavaBase 21282 2019-12-27 09:47:13
-
- How to import jar package in java project
- How to import the jar package in the java project: Create a new folder in the java project and save the jar package, then right-click the jar package and select "Build Path" - "Add to Build Path".
- JavaBase 12215 2019-12-27 09:32:13
-
- What is java swing?
- Swing is a development toolkit (GUI toolkit) for developing Java application user interfaces and is part of the JAVA basic class; it includes graphical user interface (GUI) devices such as: text boxes, buttons, separated panes and surface.
- JavaBase 6816 2019-12-26 18:04:05
-
- What does reflection in java mean?
- Reflection is a mechanism for indirectly operating on target objects. The Java reflection mechanism is that when a Java program is running, for any class, all properties and methods of the class can be known; for any object, any method of it can be called. This function of dynamically obtaining and calling object methods is called the reflection mechanism of the Java language.
- JavaBase 3431 2019-12-26 17:54:46
-
- What is the difference between js and java?
- Differences: 1. Java is an object-oriented language, and JavaScript is a scripting language, which is an object- and event-driven language. 2. Java uses static binding; Js uses dynamic binding.
- JavaBase 8563 2019-12-26 17:31:24
-
- What is java concurrency?
- Concurrency refers to the alternate execution of multiple tasks within a certain period of time. When multiple threads are operating, the CPU running time is divided into several time periods, and then the time periods are allocated to each thread for execution. While one thread's code is running, other threads are suspended.
- JavaBase 3922 2019-12-26 17:13:06
-
- What are the classes that cannot be inherited in Java?
- Classes marked final in Java are final classes and cannot be inherited, such as public, final, and String. When final is used to modify a class, it means that the class cannot be inherited.
- JavaBase 5120 2019-12-26 16:34:05
-
- How to implement delay in java
- Methods to implement delay in java: 1. Use the Timer class to implement it. The schedule method of the Timer class can execute the program according to the time plan. 2. Use the Thread class, and ordinary delays can be implemented using the Thread.sleep(int) method.
- JavaBase 8116 2019-12-26 16:17:47
-
- Solution to Chinese garbled characters when running java using cmd
- Solution to Chinese garbled characters when cmd runs java: 1. Use the "chcp 65001" command in cmd to set the cmd encoding to utf-8. 2. Specify the encoding method when executing java in cmd.
- JavaBase 16806 2019-12-26 15:32:05
-
- How to determine whether strings are equal in java
- How to determine whether strings are equal in Java: 1. Use "==" to determine whether strings are equal. 2. Use the equals method to determine whether strings are equal. The equals method cannot be used on variables of basic data types.
- JavaBase 23448 2019-12-26 14:57:02
-
- The difference between java character stream and byte stream
- The difference between java character stream and byte stream: 1. When reading and writing, one reads and writes by bytes, and the other reads and writes by characters. 2. The ones ending with stream are both byte streams, and the ones ending with reader and writer are both character streams.
- JavaBase 5497 2019-12-26 14:40:59
-
- What is an identifier in java
- Identifiers in Java are names used by users when programming. They are used to name variables, constants, functions, statement blocks, etc. Java identifiers consist of numbers, letters and underscore (_), dollar sign ($).
- JavaBase 3302 2019-12-26 14:26:57
-
- How to create a thread in java
- How to create a thread in java: 1. Create a thread by inheriting the Thread class. 2. Create a thread by implementing the Runnable interface. 3. Use Callable and Future to create threads.
- JavaBase 5513 2019-12-26 14:11:37
-
- Several common exceptions in java
- Several common exceptions in Java: 1. Null pointer exception class. 2. Data type conversion exception. 3. No access rights. 4. The parameters of the method are wrong. 5. Array subscript out-of-bounds exception. 6. File not found exception. 7. The specified class does not exist. 8. Instantiation exception.
- JavaBase 7158 2019-12-26 14:01:17