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 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
  • UML diagram of Java interface

    UML diagram of Java interface

    UML diagram of Java interface The UML diagram representing the interface is similar to the UML diagram representing the class. A rectangle is used to describe the main components of an interface, and the rectangle is divided into three layers vertically.
    2024-11-08
  • Java custom exception class

    Java custom exception class

    Java custom exception class We need to know that using Java's built-in exception class can describe most exceptions during programming. In addition, we can also extend the Exception class to define our own exception class during programming, and then
    2024-11-08
  • Execution order of return statements in Java try...catch...finally statement (1)

    Execution order of return statements in Java try...catch...finally statement (1)

    Execution order of return statements in Java try...catch...finally statement (1) In the first case, there is a return statement in the try statement block, but there is no return statement in the catch statement block and finally statement block. The code
    2024-11-08