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 class

    Java class

    Java classes are the basic elements that make up a Java program. A Java application is composed of several classes. Classes are the most important "data types" in the Java language, and variables declared by classes are called objects. The defin
    2024-11-08
  • Java return statement

    Java return statement

    Java return statement What is return in Java and how to use it? 1. Introduction to return The return statement in Java is always closely related to the method. The return statement is always used in the method. It has two functions. One is to return the v
    2024-11-08
  • Java continue statement

    Java continue statement

    Java continue statement The continue statement is a statement composed of the keyword continue plus a semicolon. The continue statement can be used in the loop body. In a loop, if the continue statement is executed in a certain loop, then the loop will en
    2024-11-08
  • Java break statement

    Java break statement

    Java break statement The break statement is a statement composed of the keyword break plus a semicolon. The break statement can be used in the loop body. In a loop, if the break statement is executed in a certain loop, the entire loop statement ends. Exam
    2024-11-08
  • Java do-while loop statement

    Java do-while loop statement

    Java do-while loop statement The syntax format of the do-while loop statement is as follows: do {    //statement}while (expression) Note: do-while loop...
    2024-11-08
  • Java while loop statement

    Java while loop statement

    Java while loop statement The syntax format of the while loop statement is as follows: while (expression) {    //statement} Note: 1) The expression must be an expression that evaluates to b...
    2024-11-08
  • Java for loop statement

    Java for loop statement

    Java for loop statement A loop statement requires the program to repeatedly perform certain operations based on conditions until the program is "satisfied". The syntax format of the for loop statement is as follows: for (expression 1; expression
    2024-11-08
  • Java switch statement

    Java switch statement

    Java switch statement The switch statement is a switch statement with a single condition and multiple branches. The syntax format is as follows: switch(expression) {    case&n……
    2024-11-08
  • Java if conditional branch statement

    Java if conditional branch statement

    Java if conditional branch statement Conditional branch statement can be subdivided into three forms according to the grammatical format. if statement: The if statement is a single-condition single-branch statement, that is, it controls the flow of progra
    2024-11-08
  • Java statement

    Java statement

    Java Statements Statements in Java are divided into six categories: 1. Method call statement: System.out.println("Hi www.dotcpp.com"); 2. Expression statement: consists of a...
    2024-11-08
  • Java operator precedence and associativity

    Java operator precedence and associativity

    The priority of Java operators and the priority of associative operators determine the order in which operations in an expression are executed. For example: x<y&&!z is equivalent to (x<y)&&(!z) . operator knot
    2024-11-08
  • Java instanceof operator example explanation

    Java instanceof operator example explanation

    Java instanceof operator example explanation The operand on the left of the instanceof operator is an object, and the operand on the right is a class. When the object on the left is an object created by the class or subclass on the right, the result of th
    2024-11-08
  • Java conditional operator examples explained

    Java conditional operator examples explained

    Examples of Java conditional operators explain that the conditional operator (?:) is a ternary operator. The so-called "item" refers to the number of objects that this operator participates in the operation. In other words, the conditional opera
    2024-11-08
  • Java assignment operator examples explained

    Java assignment operator examples explained

    Java assignment operator examples explain that the operand on the left side of the assignment operator must be a variable, not a constant or an expression. The value of the assignment expression is = the value of the variable on the left side. Note: 1) Do
    2024-11-08
  • Java bit operator examples explained

    Java bit operator examples explained

    Java bit operator examples explain the bit operations defined by Java applied to integer types, such as int, long, short, char and byte, etc. Bitwise operators are mainly used to perform operations on the binary bits of the operands. Bitwise operations re
    2024-11-08