Home>Network programming tutorial> Java tutorial
All ASP tutorial ASP tutorial ASP.NET tutorial PHP tutorial JSP tutorial C#/CSHARP tutorial XML tutorial Ajax tutorial Perl tutorial Shell tutorial Visual Basic tutorial Delphi tutorial Mobile development tutorial C/C++ tutorial Java tutorial J2EE/J2ME Software engineering
Java tutorial
  • Java uses reflection to obtain the implementation code of class attribute value

    Java uses reflection to obtain the implementation code of class attribute value

    Principle: Java's reflection can obtain the name of the attribute, and then call a method of the class through invoke. For example, there is a property called userName, this class writes a method called getUserName, and the getUserName method is calle
    2024-12-30
  • java gets the implementation code of the current function name

    java gets the implementation code of the current function name

    Without further ado, just go to the code and copy the code as follows: import java.text.SimpleDateFormat; import java.util.Date; /** * Java implementation is similar to __FILE__, __FUNC__, __L in C/C++
    2024-12-30
  • In-depth analysis of System.load and System.loadLibrary

    In-depth analysis of System.load and System.loadLibrary

    1. They can all be used to load library files, whether they are JNI library files or non-JNI library files. The corresponding JNI library file must be loaded using one of these two methods before any native method is called. 2. The System.load parameter i
    2024-12-30
  • Specific steps for setting the default opening method of files in Eclipse

    Specific steps for setting the default opening method of files in Eclipse

    I am learning Android recently and need to open xml files frequently. So I want to change the default opening method. Solution: Set the default opening mode to XML Editor. Menu: Window -> Preferences -> General -> Editors -> File
    2024-12-30
  • Java basic data types

    Java basic data types

    Variables apply for memory to store values. In other words, when creating a variable, you need to apply for space in memory. The memory management system allocates storage space to variables according to their type, and the allocated space can only be use
    2024-12-30
  • Java variable types

    Java variable types

    In the Java language, all variables must be declared before use. The basic format for declaring variables is as follows: type identifier [ = value][, identifier [=
    2024-12-30
  • Java modifiers

    Java modifiers

    The Java language provides many modifiers, which are mainly divided into the following two categories: Access modifiers Non-access modifiers Modifiers are used to define classes, methods or variables, and are usually placed at the front of the statement.
    2024-12-27
  • Java operators

    Java operators

    One of the most basic uses of computers is to perform mathematical operations. As a computer language, Java also provides a rich set of operators to manipulate variables. We can divide operators into the following groups: arithmetic operators relational o
    2024-12-27
  • Java loop structures - for, while and do…while

    Java loop structures - for, while and do…while

    Sequentially structured program statements can only be executed once. If you want to perform the same operation multiple times, you need to use a loop structure. There are three main loop structures in Java: while loop do...while loop
    2024-12-26
  • Java branching structure - if…else/switch

    Java branching structure - if…else/switch

    The sequential structure can only be executed sequentially and cannot make judgments and selections, so a branch structure is needed. Java has two branching structures: if statement switch statement if statement An if statement contains a Boolean table
    2024-12-26
  • Java Number class

    Java Number class

    Under normal circumstances, we will use the basic data types of data: byte, int, short, long, double, float, boolean, char; there are also eight corresponding packaging types: By
    2024-12-26
  • Java Character class

    Java Character class

    In this chapter, we mainly introduce to you the Java Character class and the usage of the Character class. When the Java Character class uses characters, we usually use the built-in
    2024-12-25
  • Java StringBuffer 和 StringBuilder 类

    Java StringBuffer 和 StringBuilder 类

    When modifying strings, you need to use the StringBuffer and StringBuilder classes. Different from the String class, StringBuffer and Str
    2024-12-25
  • Java array

    Java array

    Arrays are one of the important data structures for every programming language. Of course, different languages ​​implement and process arrays differently. Arrays provided in the Java language are used to store fixed-size elements of the same type. you can
    2024-12-24
  • Java date time

    Java date time

    The java.util package provides the Date class to encapsulate the current date and time. The Date class provides two constructors to instantiate Date objects. The first constructor initializes the object with the current date and time. D
    2024-12-24