current location:Home > Technical Articles > Java > JavaBase

  • java mutable classes and immutable classes
    java mutable classes and immutable classes
    A Java mutable class means that after obtaining an instance of this class, the content of the instance can be changed, such as changing the internal member variables of this instance; an immutable class means that after obtaining an instance of this class, the contents of the instance cannot be changed. Once an immutable instance Once created, the values ​​of its internal member variables cannot be changed.
    JavaBase 2061 2019-11-14 09:54:35
  • Solve the problem that the browser does not support java
    Solve the problem that the browser does not support java
    Solution to the problem that the browser does not support Java: 1. Click on the browser settings option; 2. Click on the Internet options; 3. Click on the security option; 4. Click on the custom level; 5. Find "java applet script" and click "Enable" That’s it.
    JavaBase 21811 2019-11-14 09:40:53
  • Java determines whether a variable is empty
    Java determines whether a variable is empty
    How to determine whether a variable is empty in java: first import the org.springframework.util package; then use "StringUtils.isEmpty(Object str);" to determine; finally, you can determine that the variable is empty based on the returned value being false.
    JavaBase 4416 2019-11-14 09:32:55
  • Java determines whether an array contains a certain value
    Java determines whether an array contains a certain value
    How to determine whether an array contains a certain value in Java: 1. Create a findStr function and pass in two parameters: the array and the value to be found; 2. Use a for loop within the function to traverse the array; 3. Use equals to determine whether the array element is There are elements that are the same as the value to be found; 4. If there are the same elements, the array contains this value.
    JavaBase 6234 2019-11-14 09:20:17
  • What are the basic interfaces of Java collection class framework?
    What are the basic interfaces of Java collection class framework?
    The basic interfaces of the Java collection class framework have two major interfaces: Collection and Map, one is a collection of elements and the other is a collection of key-value pairs; among them, the List and Set interfaces inherit the Collection interface; HashMap and HashTable implement the Map interface.
    JavaBase 4055 2019-11-14 09:08:21
  • what is java expression
    what is java expression
    A Java expression is a combination of variables or constants and symbols, ending with a semicolon ";". The main categories of Java expressions include arithmetic expressions, assignment expressions, conditional expressions and logical expressions.
    JavaBase 3826 2019-11-13 17:37:00
  • Principle of automatic loading in PHP and tutorial on using __autoload
    Principle of automatic loading in PHP and tutorial on using __autoload
    The principle of automatic loading in PHP: When adding a new class, if the PHP system cannot find the class, it will automatically call the __autoload($class_name) method in this file, and the new class_name becomes the parameter of this method.
    JavaBase 2451 2019-11-13 17:39:48
  • Java prompts that the system cannot find the specified file
    Java prompts that the system cannot find the specified file
    Solution to the java prompt that the system cannot find the specified file: 1. Check whether the file path is correct; 2. When creating a file, first use mkdirs to create the parent directory, and then use createNewFile to create the file.
    JavaBase 3141 2019-11-13 17:22:47
  • Several common locks in Java
    Several common locks in Java
    Common locks in Java are: 1. Spin lock; 2. Heavyweight lock; 3. Bias lock; 4. Lightweight lock; 5. Fair and unfair lock; 6. Pessimistic lock; 7. Optimistic lock.
    JavaBase 3670 2019-11-13 17:16:44
  • How many bytes does char occupy in Java?
    How many bytes does char occupy in Java?
    In Java, char occupies 2 bytes. Java uses Unicode encoding, and 2 bytes represent one character. When numbers are stored in English, the first byte is 0, and when Chinese characters are stored, they occupy two bytes.
    JavaBase 6877 2019-11-13 17:08:08
  • How to understand enumeration types in Java
    How to understand enumeration types in Java
    In Java, when a variable has multiple fixed values, it can be defined as an enumeration type. You must use the enum keyword when declaring an enumeration, and then define the name, accessibility, base type, members, etc. of the enumeration.
    JavaBase 3831 2019-11-13 17:01:25
  • How to install java
    How to install java
    How to install java: 1. Go to the java official website and download the jdk installation package; 2. Double-click the installation package to install according to the guidance; 3. Right-click My Computer - Advanced System Settings - Environment Variables and add the JAVA_HOME variable to the jdk directory; 4. Finally, in Path Just add the bin directory after the variable.
    JavaBase 5449 2019-11-13 16:37:57
  • Several uses of this keyword in java
    Several uses of this keyword in java
    The uses of this keyword in Java are: 1. Call methods of this class; 2. Call attributes of this class; 3. Call other constructors of this class; 4. Call methods of the same name of the parent class or other specified classes.
    JavaBase 5399 2019-11-13 16:29:25
  • Java can't find the main method?
    Java can't find the main method?
    The solution to the problem that java cannot find the main method: first check the format of the main function; then open eclipse-window-preference-run and debug-Lunching; and finally change the first line of configuration to always.
    JavaBase 10146 2019-11-13 16:12:04
  • What are java value types
    What are java value types
    Java value types are basic data types, including four data types: integer, floating point, character, and logical. Value type data is stored in the stack, has faster access speed, and has a short life cycle.
    JavaBase 3004 2019-11-13 15:53:08

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!