current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- What is the difference between treemap and hashmap in java?
- Differences: 1. The elements in HashMap have no order; all elements in TreeMap have a certain fixed order. 2. HashMap inherits the AbstractMap class and is implemented based on the hash table; TreeMap inherits the SortedMap class and is implemented based on the red-black tree.
- JavaBase 31800 2020-11-11 17:12:56
-
- What are the differences between ssm and springboot?
- Differences: 1. In development, although springboot simplifies the configuration, it only makes the way of writing simpler, and there are still some differences in the way of integration with SSM; 2. When developing with SSM, most people will choose Jsp as the view, but Springboot does not recommend using jsp.
- JavaBase 39815 2020-11-17 16:30:16
-
- What are the built-in objects of jsp?
- The built-in objects of jsp are: request object, response object, session object, out object, application object, page object, exception object, pageContext object, and config object.
- JavaBase 6005 2020-11-17 18:19:02
-
- What is the difference between @autowired and @resource annotations?
- Differences: 1. The @Autowired annotation is provided by Spring and is only injected according to byType; the @resource annotation is provided by J2EE and is automatically injected by byName by default. 2. @Autowired is assembled by type by default, and @Resource is assembled by name by default.
- JavaBase 87734 2020-11-09 10:35:15
-
- What is the difference between struts2 and springMVC?
- Difference: the springmvc entrance is a servlet front-end controller, and the struts2 entrance is a filter; 2. springmvc is developed based on methods, and struts2 is developed based on classes; 3. Compared with SpringMVC, Struts2 verification is more cumbersome.
- JavaBase 17673 2020-11-09 10:05:37
-
- Why was jsp eliminated?
- JSP was eliminated not because of backward technology, but because of industry trends; now the emphasis is on the separation of front-end and back-end. The front-end writes the front-end code, and the back-end writes the back-end code. There is no need to integrate the front-end and back-end codes. Together, so the use of jsp is limited.
- JavaBase 21735 2020-11-06 12:43:25
-
- What are the mysql query statements in java
- MySQL query statements in Java: 1. Simple query; 2. Simple query; 3. Sorting query; 4. Group query, the code is [group by grouped field.[Having condition]]; 5. Paging query, the code is [ select * from table name limit x;].
- JavaBase 4820 2020-11-02 15:36:24
-
- How to convert list to array in java?
- How to convert a list collection into an array in Java: 1. Use the parameterless toArray method, the syntax format "Object[] toArray();"; 2. Use the toArray method that supports generics, the syntax format "<T> T[] toArray (T[] a);".
- JavaBase 100642 2020-11-02 15:00:33
-
- What does a java source file consist of?
- Java source files are composed of three parts: the first part is the class or external structure, such as "class Student{}"; the second part is the main() method, also called the entry of the program; the third part is the written code, It is written in the main method.
- JavaBase 13343 2020-11-02 14:40:53
-
- What are the three factory patterns in java?
- Java's three factory patterns: 1. Simple factory pattern, which provides a function to create object instances without caring about its specific implementation; 2. Factory method pattern; 3. Abstract factory pattern, which provides a function to create a series of related or interdependent objects interfaces without specifying their specific classes.
- JavaBase 5635 2020-11-02 14:23:46
-
- What are the eight basic data types of Java?
- The eight basic data types of Java are: 1. Integer type byte, short, int, long; 2. Character type char; 3. Floating point type float, double; 4. Boolean type boolean.
- JavaBase 71921 2020-11-02 13:41:39
-
- How to convert string to number in java
- Method of converting java string to number: 1. Convert to integer number [Integer.parseInt(String s)]; 2. Convert to floating point number [Float.parseFloat(String s)].
- JavaBase 77444 2020-11-02 09:46:02
-
- Reasons why mysql inserts data slowly
- The reasons why mysql inserts data slowly: 1. The insertion efficiency is reduced due to the main code, foreign code, and index; 2. Due to the use of a for loop to continuously execute this method to insert; 3. The query results cannot be released in time.
- JavaBase 11771 2020-11-01 14:54:25
-
- What are the java fonts?
- Java fonts include: 1. Serif is serif; 2. [Sans-serif] is sans serif; 3. Monospaced is equal width; 4. Dialog is dialog box; 5. DialogInput is dialog box input.
- JavaBase 3839 2020-10-30 14:59:20
-
- What is the principle of spring aop
- Spring AOP principle: 1. AOP is aspect-oriented and is a programming paradigm that provides another perspective to consider the program structure to improve object-oriented programming OOP; 2. AOP provides developers with a mechanism to describe cross-cutting concerns. and the ability to automatically weave cross-cutting concerns into object-oriented software systems.
- JavaBase 3768 2020-10-30 14:51:07