current location:Home > Technical Articles > Java > JavaBase

  • What is the length of java int?
    What is the length of java int?
    java int is 4 bytes, 32 bits, and the value range is -2^31—2^31-1, that is, the length is -2147483648—2147483647.
    JavaBase 5824 2019-11-18 13:24:56
  • The difference between list and arraylist in java
    The difference between list and arraylist in java
    The difference between List and ArrayList in Java is: List is an interface, and ArrayList is an implementation class of the List interface. The ArrayList class inherits and implements the List interface.
    JavaBase 2234 2019-11-18 13:17:23
  • where is java jdk
    where is java jdk
    Java jdk is installed in the C:\Program Files\Java\ directory by default. You can open cmd and enter "java -version" to view the specific path; on Linux systems, you can use the which java command to view it.
    JavaBase 7465 2019-11-18 13:08:33
  • Is the key sorting of java map?
    Is the key sorting of java map?
    The keys of HashMap and HashTable in java map are not sorted, and the data is fetched randomly; the keys of LinkedHashMap and TreeMap are sorted, and the output is in the order of storage and ascending order during traversal.
    JavaBase 2070 2019-11-18 11:46:46
  • What does the import keyword mean in java
    What does the import keyword mean in java
    The import keyword in java is used to import packages. If a class is used in a class from another package, it needs to be introduced using the import keyword, for example: "java.util.*", which means to import all classes or interfaces under the util package.
    JavaBase 9836 2019-11-18 11:38:02
  • The difference between java map and list
    The difference between java map and list
    The differences between java map and list are: 1. Map is a collection that maps key objects and value objects, and elements cannot be repeated; 2. List stores objects in a linear manner, and elements can be repeated; 3. List uses the add method to add elements ;4. Map uses the put method to add elements, and so on.
    JavaBase 5262 2019-11-18 11:24:14
  • How to get out of for loop in java
    How to get out of for loop in java
    The method for Java to jump out of a for loop is: if it is a single-layer loop, use break to jump out normally; if it is a multi-layer loop, you can give the for loop a name. The naming rule is name + half-width colon, and then use break followed by the name. You can jump out of the for loop.
    JavaBase 4061 2019-11-18 11:14:58
  • java socket garbled code
    java socket garbled code
    The solution to Java socket garbled code: first use InputStreamReader on the server to specify the client's input stream as utf-8 encoding, and use OutputStreamWriter to specify the output stream as utf-8 encoding; then set the same utf-8 encoding on the client.
    JavaBase 10922 2019-11-18 11:05:34
  • What does '...' mean in java
    What does '...' mean in java
    The symbol "..." in Java represents a variable-length parameter, which means that any number of parameters of this type can be passed in at this position. For example, if used in a formal parameter, it means that the number of parameters passed in is variable. The parameters passed in are put into an array.
    JavaBase 15248 2019-11-18 11:00:08
  • How to write java sql statement
    How to write java sql statement
    How to write a java sql statement: first write the sql statement prototype; then change the required value to double single quotes; then add double quotes between the single quotes; then add two + signs between the double quotes; finally Just write the variable in the plus sign.
    JavaBase 8485 2019-11-18 10:51:07
  • 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 3218 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 4193 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 2887 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 4410 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 10551 2019-11-16 17:12:33

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