current location:Home > Technical Articles > Java > JavaBase

  • What is the difference between constructor methods and ordinary methods in java
    What is the difference between constructor methods and ordinary methods in java
    The difference between constructors and ordinary methods in Java is: 1. The method name of the constructor must be exactly the same as the class name in which it is defined, and there is no return type; 2. There must be a constructor in a class, because the system will automatically add no parameters Construction method.
    JavaBase 3350 2020-05-16 11:44:50
  • What is the implementation mechanism of java polymorphism?
    What is the implementation mechanism of java polymorphism?
    The implementation mechanism of Java polymorphism is: the reference variable defined by the parent class interface or interface can point to the instance object of the subclass or implementation class, and the method called by the program is dynamically bound at runtime, which is the specific implementation object pointed by the reference variable. Methods.
    JavaBase 4161 2020-05-16 11:04:04
  • What are the main data structures in java
    What are the main data structures in java
    The data structures in Java are: 1. Stack, which implements a last-in-first-out data structure; 2. Dictionary, which is an abstract class that defines a data structure that maps keys to values; 3. Enumeration, which The retrieval interface defines a way to retrieve consecutive elements from a data structure.
    JavaBase 2609 2020-05-16 10:38:21
  • What is the difference between T and ? in java generics?
    What is the difference between T and ? in java generics?
    The difference between T and ? in Java generics is: T represents an unknown type, which is used as a parameter in a method or a class generic; ? represents a general reference in generics, which is a placeholder character, data cannot be added to the container.
    JavaBase 6332 2020-05-16 09:58:42
  • How to define string in java
    How to define string in java
    The method of defining a string in Java is: 1. Define it through direct assignment, the specific code is [String str = "Hello";]; 2. Define it through instantiation through the construction method, the specific code is [String str = new String( "Hello");].
    JavaBase 6422 2020-05-15 11:35:41
  • What is the difference between queue and stack in java
    What is the difference between queue and stack in java
    The difference between a queue and a stack in Java is: 1. The queue is first in, first out, and the stack is first in, last out; 2. The queue is implemented by the Queue interface, and the stack is implemented by the List interface; 3. The stack can only be inserted and deleted at one end of the table Operation, the queue performs insert operations on one end of the table and delete operations on the other end.
    JavaBase 4380 2020-05-15 11:21:44
  • Can interface implement interface in java?
    Can interface implement interface in java?
    Interfaces cannot implement interfaces in java. An interface can inherit one or more interfaces. To inherit an interface, you need to use the extends keyword. A sub-interface inherits the methods of the parent interface, such as [public interface Hockey extends Sports, Event].
    JavaBase 4479 2020-05-15 11:04:17
  • What are the several states of java threads?
    What are the several states of java threads?
    The several states of java threads are: 1. NEW; 2. RUNNABLE; 3. BLOCKED; 4. WAITING; 5. TIMED_WAITING; 6. TERMINATED.
    JavaBase 2671 2020-05-14 15:53:01
  • How to declare an array in java
    How to declare an array in java
    The method of declaring an array in Java is: taking a one-dimensional array as an example, the method of declaring an array is [array type [] array name], such as [int[] array = {1,2,3}] or [int[] array = new int[] {1,2,3}], which means declaring an array named int type.
    JavaBase 5410 2020-05-14 15:14:56
  • What is a static variable in java
    What is a static variable in java
    Static variables in Java refer to variables modified by the static keyword, also called class variables. Static variables can be accessed directly through the class name, their life cycle depends on the life cycle of the class, and they can be shared by all instances of the class.
    JavaBase 4613 2020-05-14 14:01:52
  • What is the difference between java variables and constants
    What is the difference between java variables and constants
    The difference between Java variables and constants is: 1. In the Java coding standards, constant names are required to be in uppercase, and variable names are required to be in lowercase; 2. Constants can only be assigned once, and variables can be assigned multiple times; 3. Constants are used during the running of the program. It cannot be changed, variables can be changed.
    JavaBase 7636 2020-05-14 13:33:34
  • What is the difference between java interface and abstract class
    What is the difference between java interface and abstract class
    The difference between Java interfaces and abstract classes is: 1. Abstract classes can not only have abstract methods, but also instance methods. All methods in the interface are public abstract methods; 2. Subclasses use the extends keyword to inherit abstract classes, and subclasses Use the implements keyword to implement the interface.
    JavaBase 2274 2020-05-14 13:15:40
  • What are the four commonly used frameworks for java development?
    What are the four commonly used frameworks for java development?
    The four commonly used frameworks for Java development are: 1. SpringMVC, which implements the MVC design pattern; 2. Mybatis, which is an excellent persistence layer framework; 3. Spring, which provides IOC, AOP and other functions; 4. Maven , which is a project management tool.
    JavaBase 12981 2020-05-13 16:20:11
  • What are the keywords of java exception handling
    What are the keywords of java exception handling
    The keywords of java exception handling are: 1. try; 2. catch; 3. finally; 4. throw; 5. throws. All exception classes are subclasses inherited from the java.lang.Exception class.
    JavaBase 3881 2020-05-13 13:31:50
  • What technologies do you need to master for java back-end development?
    What technologies do you need to master for java back-end development?
    The technologies that need to be mastered in java back-end development include: 1. Servlet, Servlet plays the core role in the Web MVC structure; 2. JDBC, RMI, etc.; 3. Spring framework; 4. Combined with hadoop to build java distributed development.
    JavaBase 14679 2020-05-12 14:11:01

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