current location:Home > Technical Articles > Java > JavaBase

  • How to enter a string in java
    How to enter a string in java
    Steps to input strings in java: First, import the java.util.* package; then, you need to create a new scanner object (Scanner) that reads standard input (keyboard); now you can input strings from the keyboard, use Scanner.nextLine () method to get the string.
    JavaBase 43070 2019-11-13 10:10:15
  • Three ways to traverse arrays in java
    Three ways to traverse arrays in java
    There are three ways to traverse an array in Java, namely: 1. Use a for loop to traverse the array; 2. Use the foreach statement to traverse the array; 3. Use the toString static method in the Arrays tool class to traverse the array.
    JavaBase 8693 2019-11-13 09:56:41
  • How to read data from file in java
    How to read data from file in java
    The method for java to read data from a file is: 1. Create a new Class class; 2. Write the Main method; 3. Create a new txt document in the root directory of the C drive for testing; 4. Create a File object; 5. Create a StringBuilder object; 6. , read the file content.
    JavaBase 8620 2019-11-13 09:41:47
  • How to define functions in java
    How to define functions in java
    The syntax format of defining a function in Java is: modifier + return value type + function name ([parameter type 1 + parameter name 1], parameter type 2 + parameter name 2...) {execution statement + return + return value}.
    JavaBase 6519 2019-11-13 09:23:47
  • The difference between processes and threads in java
    The difference between processes and threads in java
    The difference between processes and threads in Java is: 1. Threads in the same process share the address space of this process, while processes have independent address spaces; 2. Threads in the same process share the resources of this process, but between processes The resources are independent.
    JavaBase 3897 2019-11-12 17:26:41
  • How to understand reflection in java
    How to understand reflection in java
    Reflection in Java means that in the running state, for any class, you can know what methods and properties the class has, and for any object, you can call its methods and properties.
    JavaBase 6759 2019-11-12 17:07:17
  • What is rewriting in java
    What is rewriting in java
    The inheritance feature of classes in Java programs can produce a subclass. When the subclass inherits the parent class, it will have the non-private properties of the parent class. In the subclass, you can add your own properties, and you can also extend the methods in the parent class. , to enhance its own functions, which is called rewriting, also called copying or overwriting.
    JavaBase 6237 2019-11-12 16:54:01
  • Understanding the concept of caching in java
    Understanding the concept of caching in java
    The cache in Java refers to the buffer for data exchange. When a certain piece of hardware wants to read data, it will first query the data from the cache and execute it directly. If it does not exist, it will get it from the memory.
    JavaBase 2307 2019-11-12 16:51:12
  • Eclipse cannot create java virtual machine
    Eclipse cannot create java virtual machine
    Solution to the inability to create a virtual machine: 1. Open the eclipse.ini file in the eclipse directory; 2. Modify the –launcher.XXMaxPermSize property; 3. Modify it to 128m, save and restart.
    JavaBase 3252 2019-11-12 16:35:48
  • What is static in java? How to understand?
    What is static in java? How to understand?
    Static (static) in Java is a keyword mainly used to create domain variables or methods that are independent of specific objects. If a member variable is shared by all objects, then the member variable should be defined as a static variable.
    JavaBase 5957 2019-11-12 16:34:09
  • The file name downloaded by java is garbled
    The file name downloaded by java is garbled
    Solution to the garbled file name downloaded by java: 1. Use URLEncoder for encoding for the IE browser core; 2. Use getBytes for non-IE browsers to transcode; 3. Change tomcat and eclipse encoding to utf-8.
    JavaBase 2497 2019-11-12 16:19:14
  • What software is written in java
    What software is written in java
    Software written in Java includes: 1. Eclipse and IDEA programming software; 2. Games include "Minecraft"; 3. Big data storage software includes Hadoop and Elasticsearch; 4. Most Android applications are also developed using Java; 5. Enterprise management application software and so on.
    JavaBase 12842 2019-11-12 16:04:46
  • What are the design patterns in Java?
    What are the design patterns in Java?
    The design patterns in Java include: Strategy pattern, Agent pattern, Singleton pattern, Multiple instance pattern, Factory method pattern, Abstract factory pattern, Facade pattern, Adapter pattern, Template method pattern, Builder pattern, Bridge pattern, and Command pattern.
    JavaBase 2865 2019-11-12 15:53:07
  • What are the exceptions in java
    What are the exceptions in java
    Java exceptions include: 1. Null pointer exception; 2. Mathematical operator exception; 3. Array subscript out-of-bounds exception; 4. Access permission exception; 5. Method parameter exception; 6. Specified class does not exist exception, etc.
    JavaBase 4346 2019-11-12 15:44:27
  • Examples of sorting methods in java
    Examples of sorting methods in java
    To implement sorting in Java, you can move the largest element in the sequence to be sorted to the end in each pass, and the remainder is the new sequence to be sorted. Repeat this step until all elements are sorted.
    JavaBase 4217 2019-11-12 15:36:28

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