current location:Home > Technical Articles > Java > JavaBase

  • The difference between >>> and >> in java
    The difference between >>> and >> in java
    The difference between ">>>>" and ">>" in Java is: ">>" means right shift. If the number is positive, the high bits are filled with 0. If it is a negative number, the high bits are filled with 1; ">>>>" means Unsigned right shift. If the number is positive, the high bits are filled with 0. If the number is negative, the high bits are also filled with 0 after the right shift.
    JavaBase 3335 2019-11-18 10:44:32
  • java string garbled characters
    java string garbled characters
    Solution to garbled java string: 1. Use "new String(str.getBytes("ISO-8859-1"), "utf-8")" to convert the string to utf-8 encoding; 2. Use "URLDecoder. decode" to transcode the url.
    JavaBase 4321 2019-11-18 10:22:39
  • Is java this a pointer?
    Is java this a pointer?
    java this is not a pointer. There is no concept of pointers in Java, but there is a concept of handles similar to C++ pointers, so there are only some differences in syntax between the two, but the nature is the same, both refer to an object of a certain class.
    JavaBase 3003 2019-11-18 10:03:31
  • When does java trigger gc
    When does java trigger gc
    The timing for java to trigger gc are: 1. For YGC, it is triggered when Eden space is insufficient; 2. For FGC, it is triggered when old space is insufficient, perm space is insufficient, and System.gc() is called.
    JavaBase 4520 2019-11-18 09:46:06
  • The difference between java long int
    The difference between java long int
    The differences between java long int are: 1. In 16-bit systems, long is 4 bytes and int is 2 bytes; 2. In 64-bit systems, long is 8 bytes and int is 4 bytes; 3. Their occupancy lengths are different. , long is 64 bits, and int is 32 bits; 4. The range of long is larger than that of int.
    JavaBase 10731 2019-11-16 17:12:33
  • What format is java
    What format is java
    Java is a programming language launched by Sun Microsystems. The .java format file is the source code file of java. Java has the characteristics of cross-platform and dynamic web, and is widely used in personal PCs, data centers, scientific supercomputers and other fields.
    JavaBase 4326 2019-11-16 16:50:45
  • What is initialization in java
    What is initialization in java
    Initialization in Java refers to the process of assigning an initial value to a variable. For example, "String php = "good";" means to assign the initial value good to the variable php. The purpose of initialization is to make the variable have a value and prevent exceptions when using it.
    JavaBase 4667 2019-11-16 16:29:38
  • What is an object reference in java
    What is an object reference in java
    A reference to a Java object refers to a "class" type variable pointing to a created object. For example, Hero h = new Hero(), h is a reference to the object new Hero().
    JavaBase 6477 2019-11-16 16:18:03
  • How to receive keyboard input data in java
    How to receive keyboard input data in java
    How to receive keyboard input data in java: First, you need to import the Scanner class, and then create a Scanner class object to receive keyboard input data. Finally, you can call the corresponding method of the object to extract data from it.
    JavaBase 6917 2019-11-16 16:06:13
  • There are several types of java entry functions
    There are several types of java entry functions
    There is only one java entry function, which must meet these conditions: 1. Modified with public static; 2. The method name is main; 3. The parameter is an array of String type. If these conditions are not met, it cannot be used as an entry function in Java.
    JavaBase 4728 2019-11-16 16:04:20
  • Where is the java control panel?
    Where is the java control panel?
    The java control panel is in the windows control panel. If jre is installed, the windows control panel will have a java icon. Double-click this icon to bring up the java control panel.
    JavaBase 11217 2019-11-16 15:40:06
  • The difference between class methods and instance methods in java
    The difference between class methods and instance methods in java
    The difference between class methods and instance methods in Java: Class methods are assigned memory addresses when loading a class, so they can be called by any object after loading and can be called directly through the class name, while instance methods need to create an object before they are assigned memory address.
    JavaBase 4980 2019-11-16 15:12:09
  • What are the commonly used methods in java
    What are the commonly used methods in java
    Commonly used methods in Java are: 1. trim(), the trim() method is used to remove the leading and trailing whitespace characters of a string; 2. split(), the split() method splits characters according to matching a given regular expression String; 3. substring(), substring() method returns the substring of the string.
    JavaBase 8197 2019-11-16 15:00:19
  • The difference between method reference and method call in java
    The difference between method reference and method call in java
    The difference between method reference and method call in Java is: Method reference returns the implementation of the interface, but method call returns the return value of the method.
    JavaBase 4921 2019-11-16 14:45:32
  • When running the java program, it prompts that the main class cannot be found or cannot be loaded.
    When running the java program, it prompts that the main class cannot be found or cannot be loaded.
    The reason why java prompts that the main class cannot be found or cannot be loaded: by default, the java instruction searches for the address of the class file through the directory specified in the CLASSPATH environment variable. Solution: Add ".;" to the CLASSPATH environment variable.
    JavaBase 3632 2019-11-16 14:31:42

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