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
  • A complete list of Java file reading methods

    A complete list of Java file reading methods

    1. Read the file content by bytes public class ReadFromFile {public static void readFileBytes(String fileName) {File file = new File(fileName
    2025-01-15
  • Comparison of two ways to create multi-threads in Java

    Comparison of two ways to create multi-threads in Java

    Implement multi-threading by inheriting the Thead class: Advantages: Simple to write. If you need to access the current thread, just use this instead of using the Thead.currentThread() method. Disadvantage: Because this thread class has inherited the Thea
    2025-01-15
  • How to use Sublime Text 2 to directly compile and run java code on MAC system

    How to use Sublime Text 2 to directly compile and run java code on MAC system

    Modify /Users/$username/Library/Application Support/Sublime Text 2/Packages/Java/JavaC.sublime-build to: Copy the code as follows: {"cmd": ["java
    2025-01-15
  • Java, C# uses binary serialization and deserialization to operate data

    Java, C# uses binary serialization and deserialization to operate data

    To use binary serialization and deserialization in Java, first, you need to introduce the relevant packages below java.io, or directly write import java.io.*; below, for the convenience of writing operations, copy files and throws to declare exceptions To
    2025-01-15
  • Introduction to java interface Array

    Introduction to java interface Array

    public interface ArraySQL type ARRAY mapping relationship in the java programming language. By default, the Array value is a transaction-period reference to the SQL ARRAY value. By default, Array objects are created using SQL LOCATOR(a
    2025-01-15
  • java rotate two-dimensional array example

    java rotate two-dimensional array example

    The example in this article describes the operation of rotating a two-dimensional array in Java and is shared with everyone for your reference. The specific implementation method is as follows: Copy the code as follows: package test;/** 1 2 3 4 5 * 16 17
    2025-01-15
  • The difference between java forwarding and redirection

    The difference between java forwarding and redirection

    There is an important difference between redirection and forwarding: when using forwarding, the JSP container will use an internal method to call the target page, and the new page will continue to process the same request, and the browser will not know ab
    2025-01-15
  • Detailed explanation of java NIO

    Detailed explanation of java NIO

    Java NIO provides IO working methods that are different from standard IO: Channels and Buffers: Standard IO operates based on byte streams and character streams, while NIO operates based on channels (Channel) and buffers (Buffer). ) to operate, data is al
    2025-01-15
  • Set code formatting, comment templates and automatic formatting when saving in Myeclipse

    Set code formatting, comment templates and automatic formatting when saving in Myeclipse

    1: Set the comment template: Download this template: codetemplates.xml, search for Dangzhang, change it to your own name, save it, open eclipse/myeclipse, select window-->Preferences-->java-->Code-->Cod
    2025-01-15
  • Java basics java tool class for processing IP

    Java basics java tool class for processing IP

    Java tool class for processing IP, including converting long type IP to general IP type, converting xx.xx.xx.xx type to long type, obtaining mask based on mask bits, and calculating IP based on ip/mask bits Methods such as the starting IP of the segment a
    2025-01-15
  • Java implements dual daemon process under Linux

    Java implements dual daemon process under Linux

    1. Introduction Many of today's server-side programs are developed based on Java, targeting Socket programs developed in Java. If such a server-side problem occurs after it goes online, it needs to be restarted manually. If it hangs up in the middle o
    2025-01-15
  • Java Basics: How to Learn Java Well

    Java Basics: How to Learn Java Well

    Java is a platform. I just want to talk about my views on learning Java well. I hope it will be helpful to beginners. 1. Before you think about learning Java, don’t be impatient, calm down and think carefully: 1) Are you interested in learning Java? 2) Ca
    2025-01-15
  • Learn JAVA variable parameters from scratch

    Learn JAVA variable parameters from scratch

    The following is a simple small program: copy the code as follows: import java.util.Arrays; class lesson6 {public static void main(String[] args) {int array[]={2,3,1,5
    2025-01-15
  • JavaEE implements request redirection through response

    JavaEE implements request redirection through response

    Request redirection means that after a web resource receives a client request, it notifies the client to access another web resource. This is called request redirection. The 302 status code and location header can be used to implement redirection. The mos
    2025-01-15
  • Summary about ServletConfig in JavaEE

    Summary about ServletConfig in JavaEE

    In the Servlet configuration file, you can use one or more<init-param> The tag configures some initialization parameters for the servlet. When the servlet is configured with initialization parameters, the web container will automatically encapsulate these
    2025-01-15