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
  • Class encapsulation of Java basic types

    Class encapsulation of Java basic types

    Java basic type classes encapsulate Java's basic data types including: boolean, byte, short, char, int, long, float, and double. Java also provides classes related to basic data types to implement encapsulation of basic data types. These classes are i
    2024-11-08
  • Java access

    Java access

    Java access rights The so-called access rights refer to whether the object can operate its own variables or call methods in the class through the "." operator. Access restriction modifiers include private, protected, and public. These are Java k
    2024-11-08
  • Java import statement

    Java import statement

    Java import statement A class may need an object declared by another class as its own member or local variable in a method. If the two classes are in the same package, there is no problem. However, if the two classes are not in the same package In this ca
    2024-11-08
  • Java this keyword

    Java this keyword

    Java this keyword this is a keyword in Java that represents an object. This can appear in instance methods and constructors, but not in class methods. When this keyword appears in the constructor of a class, it represents the pair created using the constr
    2024-11-08
  • Java method overloading

    Java method overloading

    Java method overloading There are two types of polymorphism in Java: overloading and overriding. Method overloading is one of the two types of polymorphism. For example: when you ask a person to perform the "find area" operation, he may ask you
    2024-11-08
  • Java instance methods and class methods

    Java instance methods and class methods

    Java instance methods and class methods are defined when the method is declared. If the method type is not modified with the keyword static in front of it, it is an instance method. If the method type is modified with the keyword static, it is a class met
    2024-11-08
  • Java instance variables and class variables

    Java instance variables and class variables

    Java instance variables and class variables The definition of instance variables and class variables When declaring member variables, those modified with the keyword static are called class variables. Class variables are also called static variables or st
    2024-11-08
  • Java parameter value passing

    Java parameter value passing

    One of the most important parts of the Java parameter value-passing method is the parameters of the method. The parameters belong to local variables. When the object calls the method, the parameters are allocated memory space and the caller is required to
    2024-11-08
  • Basic structure of Java classes and programs

    Basic structure of Java classes and programs

    The basic structure of Java classes and programs. A Java application consists of several classes. These classes can be in one source file or distributed among several source files. A Java application has a main class, which is the class that contains the
    2024-11-08
  • Java object references and entities

    Java object references and entities

    References and entities of Java objects We already know from the previous study that the variables declared by the class are called objects. The object, that is, the variable, is responsible for storing references to ensure that the object can operate the
    2024-11-08
  • Java uses objects

    Java uses objects

    The purpose of Java using object abstraction is to produce classes, and the purpose of classes is to create objects with properties and behaviors. Objects can not only manipulate their own variables to change state, but also call methods in the class to p
    2024-11-08
  • Java creates objects

    Java creates objects

    Java creates object classes, which are the most important data types in object-oriented languages. You can use classes to declare variables. In object-oriented languages, variables declared with classes are called objects. Different from basic data types,
    2024-11-08
  • Java class constructor

    Java class constructor

    Constructor method of Java class The constructor method is a special method in the class. Its constructor needs to be used when the program creates an object with the class. The name of the constructor in the class must be exactly the same as the name of
    2024-11-08
  • Java methods

    Java methods

    The content of a Java method class body is divided into variable declaration and method definition. The method definition includes two parts: method header and method body. The basic format is as follows: method header {   &
    2024-11-08
  • Java member variables

    Java member variables

    The contents of the Java member variable class body are divided into variable declarations and method definitions. The variables declared in the variable declaration part are called member variables or domain variables. The type of member variables can be
    2024-11-08