Home> Network programming 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
Network programming tutorial
  • Java final keyword

    Java final keyword

    Java final keyword The final keyword can modify local variables in classes, member variables and methods. You can use the keyword final to declare a class as a final class. A final class cannot be inherited, that is, it cannot have subclasses. For example
    2024-11-08
  • Java super keyword

    Java super keyword

    Java super keyword uses super to operate hidden member variables and methods. Once a subclass hides an inherited member variable, the object created by the subclass will no longer own the variable. The variable will be owned by the keyword super. The same
    2024-11-08
  • Hiding and method overriding of Java member variables

    Hiding and method overriding of Java member variables

    Hiding of Java member variables and method overriding When writing a subclass, we can still declare member variables. A special case is that the name of the declared member variable is the same as the name of the member variable inherited from the parent
    2024-11-08
  • Java subclasses and objects

    Java subclasses and objects

    Java Subclasses and Objects When using the constructor method of a subclass to create an object of a subclass, not only the member variables declared in the subclass are allocated memory, but also the member variables of the parent class are allocated mem
    2024-11-08
  • Java subclass inheritance

    Java subclass inheritance

    Inherited classes of Java subclasses have two important members: member variables and methods. Some of the members of a subclass are declared and defined by the subclass itself, while others are inherited from its parent class. A subclass inherits a membe
    2024-11-08
  • Java subclasses and parent classes

    Java subclasses and parent classes

    Java subclasses and parent classes When we are preparing to write a class, we find that a certain class has the member variables and methods we need. If we want to reuse the member variables and methods in this class, that is, in the class we write Withou
    2024-11-08
  • Java jar file

    Java jar file

    Java jar file When a Java application is running, it needs to load the bytes of the classes used into the memory. Therefore, there are certain requirements for the location of the bytecode files, which are generally divided into the following four situati
    2024-11-08
  • Java handles exceptions(3)throws

    Java handles exceptions(3)throws

    Java handles exceptions (3) throws In addition to using try...catch statements and try...catch...finally statements to handle exceptions, you can also use throws to handle exceptions. During development, sometimes we don’t have permission to handle the ex
    2024-11-08
  • Java handling exceptions (2) try…catch…finally

    Java handling exceptions (2) try…catch…finally

    Java handles exceptions (2) try...catch...finally. When handling exceptions, we can also use the try...catch...finally statement. When the program executes to the error code, the system will throw an exception object, and the program will enter the catch
    2024-11-08
  • Java handling exceptions (1) try…catch

    Java handling exceptions (1) try…catch

    Java handles exceptions (1) try...catch We have learned about several exceptions in Java before, so how do we handle exceptions? We can use the try...catch statement to handle exceptions, and place possible exception operations in the try part of the try.
    2024-11-08
  • Common exceptions in Java

    Common exceptions in Java

    In addition to the runtime exceptions and non-runtime exceptions mentioned in the previous section, there are many common exceptions in Java, such as: Arithmetic exception: ArithmeticExecption Null pointer exception: NullPointerException Class conversion
    2024-11-08
  • Classification of Java exceptions

    Classification of Java exceptions

    Classification of Java exceptions 1. Throwable class What is the Throwable class? The Throwable class is the super class of all errors or exceptions in the Java language. It is a common class that integrates all exceptions. Its function is to extract the
    2024-11-08
  • Java exception class

    Java exception class

    Java exception class What is an exception? The so-called exceptions are some errors that may occur when the program is running, such as trying to open a file that does not exist at all. Exception handling will change the control flow of the program and gi
    2024-11-08
  • Java anonymous class

    Java anonymous class

    Java Anonymous Classes In the previous section we learned about inner classes, in this section we will learn about anonymous classes. So what is an anonymous class? As the name suggests, anonymous classes are classes that cannot have names. They cannot be
    2024-11-08
  • Java inner classes

    Java inner classes

    Java internal classes Through previous studies, we already know that a class can have two important members: member variables and methods. In fact, a class also has one kind of member: an internal class. When a class defines another class, we call such a
    2024-11-08