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:
-
- What are the stages of jvm class loading process?
- Class loading process: 1. Loading phase; 2. Verification phase; 3. Preparation phase, which mainly allocates memory and initializes class variables in the method area; 4. Parsing phase; 5. Initialization phase, the compiler will The declared static assignment variable and the static area are merged to generate the cinit method and called; 6. Use phase; 7. Uninstall phase.
- JavaBase 13742 2023-01-13 00:40:03
-
- What file is r.java?
- The R.java file is automatically generated by the compiler and does not require developers to maintain it. R.java will automatically include all resources in the current application and create corresponding IDs based on these resources. R.java can be simply understood as the resource dictionary of the current Android application.
- JavaBase 5096 2023-01-13 00:40:02
-
- How to write constructor method in java
- The constructor method in Java is written as "class class_name {public class_name(){} public ciass_name([paramList]){} ...//class body}". The method name must be the same as the class name, and the respective method parameters must be different.
- JavaBase 19423 2023-01-13 00:40:02
-
- What are the java containers?
- java container:ArrayList、LinkedList、Vector、HashSet、LinkedHashSet、TreeSet、LinkedHashMap、TreeMap、ConcurrentHashMap、Hashtable etc.
- JavaBase 25975 2023-01-13 00:40:02
-
- What are the built-in objects of jsp?
- The built-in objects are: 1. Request object; 2. Response object; 3. out object; 4. session object; 5. application object; 6. PageContext object; 7. Config object; 8. Page object; 9. Exception object.
- JavaBase 19281 2023-01-13 00:40:02
-
- What is the extension of java source file?
- The extension of the java source file is ".java"; compile it with javac to generate a bytecode file with the suffix ".class" and save it in the same directory as the source program. If there are errors in the source code, they will be pointed out line by line. Error, correct the error and recompile until the ".class" bytecode file is generated.
- JavaBase 49604 2023-01-13 00:40:02
-
- Is Java easy to learn? How long does it usually take to learn and train?
- Generally speaking, Java training lasts for 3-6 months. People with some basic knowledge can quickly learn to master Java, which takes about 1-2 months.
- JavaBase 7559 2021-07-07 09:03:31
-
- What are the eight basic data types?
- The eight basic data types are: 1. 4 integer types (byte, short, int, long); 2. 2 floating point types (float, double); 3. 1 character type "char"; 4. 1 A Boolean type "boolean".
- JavaBase 107752 2023-01-13 00:40:02
-
- How to call webservice interface
- Calling method: First select the "Project" tab, right-click the mouse, select "new"-"other" in the pop-up right-click menu, then find "web service client", click "next", and enter the interface in "wsdl url" address, and finally click "next" to generate the class file.
- JavaBase 19961 2021-06-30 13:44:54
-
- What are the causes and solutions of stack overflow?
- Cause: The total capacity of the created objects exceeds the maximum capacity of the heap. Solution: If it is a memory leak, find the specific leak location according to the reference chain of the object that caused the overflow, and modify it; if it is a memory overflow, check the heap parameter settings of the JVM to check whether the life cycle of some objects is too long or the storage is too long. Issues such as unreasonable design will be corrected.
- JavaBase 16469 2023-01-13 00:40:01
-
- What are the three major characteristics of java object-oriented
- The three major characteristics of object-oriented Java: 1. Encapsulation, which aims to enhance data security and simplify programming; 2. Inheritance, which refers to extracting multiple identical properties and methods and creating a new parent class for the purpose of code reuse ; 3. Polymorphism, the purpose is to increase the flexibility of the code.
- JavaBase 6371 2021-06-24 13:40:34
-
- How to retain two decimal places in java
- Method: 1. Use the format method, the syntax is "String.format("%.2f", value)"; 2. Use the format method of DecimalFormat; 3. Use the setScale method for rounding; 4. Use the setMaximumFractionDigits method.
- JavaBase 64609 2023-01-13 00:40:01
-
- What is the difference between java and html
- Differences: 1. HTML is the main front-end, presenting data, and Java is the main processing data. 2. JAVA is mainly used for the development of desktop applications and distributed network applications; HTML is used for the development of front-end pages. 3. The running environment of JAVA is JDK and WEB server, and the running environment of HTML is the browser.
- JavaBase 7855 2021-06-21 15:47:45
-
- What to do if the main class cannot be found or loaded
- Solution: 1. The classpath path is configured incorrectly, causing the class file to fail to load. You can reconfigure the classpath path; 2. The test code used is not under the same package, so you can put the code under the same package.
- JavaBase 9035 2021-06-21 10:41:57
-
- How to understand the springboot framework
- Spring Boot is a new framework provided by the Pivotal team. It is designed to simplify the initial construction and development process of new Spring applications. The framework uses an ad hoc approach to configuration, eliminating the need for developers to define boilerplate configurations.
- JavaBase 7349 2023-01-13 00:40:01