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
  • Application analysis of network communication based on Java review

    Application analysis of network communication based on Java review

    TCP connection The basis of TCP is Socket. In TCP connection, we will use ServerSocket and Socket. After the client and server establish a connection, the rest is basically the control of I/O. Let's first look at a simple TCP communication, which is d
    2024-11-18
  • Detailed explanation of the use of I/O based on Java review

    Detailed explanation of the use of I/O based on Java review

    After working, the technology used changes with the changes of the project, sometimes C#, sometimes Java, and of course some other fragmented technologies. Overall, C# takes longer, followed by Java. I don't have any preference for languages. A langua
    2024-11-18
  • A brief discussion on the difference between equals and equal sign (==) in java

    A brief discussion on the difference between equals and equal sign (==) in java

    Data types in Java can be divided into two categories: 1. Basic data types, also called primitive data types. To compare byte, short, char, int, long, float, double, boolean, use the double equal sign (==), and compare their values. 2. Composite data type
    2024-11-18
  • Analysis of the difference between ArrayList and LinkList in java

    Analysis of the difference between ArrayList and LinkList in java

    1.ArrayList implements a data structure based on dynamic arrays, and LinkedList implements a data structure based on linked lists. 2. For random access to get and set, ArrayList is better than LinkedList because ArrayList can be positioned randomly, while
    2024-11-18
  • Methods to solve the problem of java.lang.NoClassDefFoundError when running Eclipse add external jars

    Methods to solve the problem of java.lang.NoClassDefFoundError when running Eclipse add external jars

    Recently I discovered a problem. Sometimes I repeatedly add jar and remove jar to an Android project, and find that the compilation can pass, but when it is applied to the object of an external jar, a java.lang.NoClassDefFoundError exception will be throw
    2024-11-18
  • Example code for generating PDF files in Java

    Example code for generating PDF files in Java

    复制代码代码如下:package com.qhdstar.java.pdf;import java.awt.Color;import java.io.FileOutputStream;import com.lowagie.text.Chapter;import com.lowagie.text.Document;import com.lowagie.text.Font;import com.lowagie.text.FontFactory;import com.lowagie.text.PageSize;
    2024-11-18
  • Detailed explanation of the method of publishing/calling Webservice using Axis in JAVA

    Detailed explanation of the method of publishing/calling Webservice using Axis in JAVA

    The difference between this example and the reference article is: 1) deploy.wsdd is defined in more detail (the interface is defined for the server side: ICalculate): Copy the code as follows: <deployment xmlns="http://xml.apache.org/axis /wsdd/&q
    2024-11-18
  • Detailed introduction to static proxy of proxy role java design pattern

    Detailed introduction to static proxy of proxy role java design pattern

    Java Dynamic Agent Pattern Agent: A role represents a role to achieve certain specific functions. For example: the relationship between manufacturers, middlemen, and customers. When customers buy products, they do not directly deal with the manufacturer,
    2024-11-18
  • Summary of Java knowledge points

    Summary of Java knowledge points

    1. Basic data type integer: byte 1 byte short 2 bytes int 4 bytes long 8 bytes character: char 2 bytes floating point number: float 4 bytes double 8 bytes Boolean: boolean 1 byte 2.java 7 New binary integers starting with 0b or 0B 3.java characters are 16
    2024-11-18
  • Detailed explanation of XML parsing in Java

    Detailed explanation of XML parsing in Java

    Let’s briefly talk about the first three methods: DOM method: Personal understanding is similar to .net’s XmlDocument, which is not efficient when parsing, takes up memory, and is not suitable for parsing large XML; SAX method: event-based parsing, when p
    2024-11-18
  • Detailed explanation of Multipart processing in HTTP protocol based on Jersey in JAVA

    Detailed explanation of Multipart processing in HTTP protocol based on Jersey in JAVA

    So what is the Multipart in the Http protocol? The following is an excerpt from http protocol 1.1: In the case of a multipart entity, one or more different data sets are combined in a single body, a "multipart" type The field (field) must appear
    2024-11-18
  • Four details to pay attention to when using the java switch statement

    Four details to pay attention to when using the java switch statement

    The format of the switch statement is as follows: (its function is to select a section of code for execution) The copy code code is as follows: switch (integer selection factor) { case integer value 1: statement; break; case integer value 2: statement; br
    2024-11-17
  • How to implement java list deduplication operation

    How to implement java list deduplication operation

    List in Java can contain repeated elements (hash code and equals), so there are two ways to deduplicate List: Option 1: It can be implemented through HashSet, the code is as follows: Copy the code and the code is as follows: class Student { private String
    2024-11-17
  • Introduction to java thread blocking interrupt and LockSupport usage

    Introduction to java thread blocking interrupt and LockSupport usage

    Last Friday and weekend, I took a break from my busy work and reviewed the implementation of Thread.interrupt and LockSupport after Java 5 while watching java cocurrent. Before introducing, let me ask a few questions. What is the relationship between the
    2024-11-17
  • Comprehensive introduction to event processing in java page design

    Comprehensive introduction to event processing in java page design

    When you have designed the interface, you always need to add corresponding execution actions to the components. There is a corresponding time processing mechanism in JAVA, called "listener". The process of adding corresponding execution actions
    2024-11-17