current location:Home > Technical Articles > Java > JavaBase

  • What is the difference between treemap and hashmap in java?
    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?
    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?
    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?
    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?
    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?
    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
    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 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?
    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?
    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?
    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
    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
    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?
    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
    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

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