current location:Home > Technical Articles > Java > JavaBase

  • Where is java installed?
    Where is java installed?
    The default installation path for 32-bit Java is C:\Program Files(x86)\Java, and the 64-bit installation path is C:\Program Files\Java. You can use the java -verbose command in cmd to view the java installation path.
    JavaBase 7422 2019-12-04 10:14:28
  • How to read files in java?
    How to read files in java?
    Methods of reading files in java: 1. RandomAccessFile method (random reading). 2. FileInputStream method (io ordinary input stream). 3. Buffer buffer reading (based on nio Buffer and FileChannel reading). 4. Memory mapped reading.
    JavaBase 4609 2019-12-04 10:01:05
  • What are java modifiers?
    What are java modifiers?
    Java modifiers are used to define classes, methods or variables, and are usually placed at the front of the statement. The Java language provides many modifiers, mainly divided into two types: access modifiers and non-access modifiers. This article introduces 11 types of modifiers in Java.
    JavaBase 4340 2019-12-04 09:52:01
  • Solution to garbled file name when exporting excel using java
    Solution to garbled file name when exporting excel using java
    Solution to the garbled file name when exporting Excel from Java: 1. Use the URLEncoder.encode() method to transcode the Excel file name in browsers such as IE. 2. Use byte stream transcoding to transcode the Excel file in the Firefox browser.
    JavaBase 6690 2019-12-04 09:23:34
  • How to determine whether a certain value exists in a string array in java
    How to determine whether a certain value exists in a string array in java
    The method to determine whether a value exists in a string array in "java" is: first, you can use the "asList" method in the "Arrays" class to convert the array into a "List" list, and then further use the "contains" method to determine the characters Just check whether a certain value exists in the string array.
    JavaBase 6851 2019-12-03 17:54:47
  • Immutable classes in java and their creation rules
    Immutable classes in java and their creation rules
    An immutable class in "java" means that a class cannot be reassigned after it is instantiated. The creation rules are: 1. Use the "private" and "final" keywords to modify member variables; 2. Provide a constructor with parameters to initialize member variables; 3. Do not provide a "setter" method for member variables.
    JavaBase 3621 2019-12-03 16:57:44
  • Java method to determine whether it is a legal date
    Java method to determine whether it is a legal date
    How to determine whether a date is a legal date in Java: first use the SimpleDateFormat class to define the date format, and then use format.setLenient(false) to strictly control the date conversion. Unconventional formats become illegal.
    JavaBase 4992 2019-12-03 16:16:43
  • Detailed explanation of the solution to garbled file names in Java downloads
    Detailed explanation of the solution to garbled file names in Java downloads
    Solution to the garbled file name of java download: 1. Use the URLEncoder.encode() method in the IE browser to set the file name encoding to "UTF-8". 2. Set the file name encoding in Firefox by setting the byte stream encoding.
    JavaBase 1987 2019-12-03 15:49:07
  • How to inherit a class in java
    How to inherit a class in java
    In the Java language, the inheritance of an implementation class uses the extends keyword, and the format of the inherited class is: [public] class SubClass extends SuperClass {definition of the class body}.
    JavaBase 7477 2019-12-03 15:33:09
  • How to run jar package in java?
    How to run jar package in java?
    How to run a jar package in java: Add Main-Class:test.someClassName in the MANIFEST.MF of the jar package, and then enter the java -jar test.jar command in the console to run the jar.
    JavaBase 9933 2019-12-03 15:24:18
  • What is a jar file in java
    What is a jar file in java
    The jar file in Java is a document format of Java. It is a file package similar to a zip file. Common classes are usually referenced during development and packaged for easy storage and management. From the customer's perspective, the .jar file is a kind of encapsulation.
    JavaBase 8581 2019-12-03 15:08:28
  • How to implement java serialization
    How to implement java serialization
    The implementation method of "java" serialization is: first implement the "Serializable" interface for the class that needs to be serialized, then use an output stream to construct an object stream object, and then use the "writeObject" method of the object stream to specify the " obj" object can be serialized.
    JavaBase 2791 2019-12-03 15:08:23
  • What is the difference between java and android
    What is the difference between java and android
    The difference between java and Android: Android is the operating system of mainstream smartphones, and Java is a development language. Android is mainly developed in the direction of mobile Internet, and Java is mainly developed in the direction of software.
    JavaBase 2487 2019-12-03 14:57:38
  • Introduction to the solution to Chinese garbled characters when reading files in Java
    Introduction to the solution to Chinese garbled characters when reading files in Java
    Solution to Chinese garbled characters when Java reads files: Specify the encoding method of the data stream as "UTF-8" in the InputStreamReader class when reading files in Java, which can solve the problem of Chinese garbled characters when Java reads files.
    JavaBase 2538 2019-12-03 14:38:09
  • How to get the day of the week for a specified date in java
    How to get the day of the week for a specified date in java
    How to get the day of the week for a specified date in java: 1. Use the Calendar class to get the day of the week for the specified date. The week obtained by this method starts on Sunday. 2. Use the SimpleDateFormat class and pass in the parameter "EEEE" to get the day of the week.
    JavaBase 3619 2019-12-03 14:17:00

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!