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
  • Detailed explanation of the difference between heap and stack in Java

    Detailed explanation of the difference between heap and stack in Java

    When a person starts to learn Java or other programming languages, he will come into contact with the heap and the stack. Since there is no clear and clear explanation at the beginning, many people will have a lot of questions. What is the heap, what is t
    2025-01-16
  • Detailed introduction to string constant pool in Java

    Detailed introduction to string constant pool in Java

    There are two forms of string object creation in Java, one is a literal form, such as String str = "droid";, and the other is to use new, a standard method of constructing objects, such as String str = new String(" droid");, these two
    2025-01-16
  • Some detailed analysis of string concatenation in Java

    Some detailed analysis of string concatenation in Java

    I was busy with the logic implementation of the project during the weekdays. I had some time on Saturday, so I took out the thick English version of Thinking In Java from the bookcase and read about the splicing of string objects. Make a translation with
    2025-01-16
  • Using arrays to implement stack data structure examples in Java

    Using arrays to implement stack data structure examples in Java

    The stack is one of the most important data structures in the Java language. Its implementation should include at least the following methods: 1.pop() pop operation, popping the top element of the stack. 2.push(E e) push operation 3.peek() check the top e
    2025-01-16
  • In-depth understanding of the flush mechanism in Hibernate

    In-depth understanding of the flush mechanism in Hibernate

    Regarding the hibernate problem encountered by my colleagues yesterday. It is the most basic thing of hibernate. I understand that many people have encountered this problem and it is very common, but they often become confused when encountering it. In ord
    2025-01-16
  • An in-depth analysis of memory prototypes and working principles in Java

    An in-depth analysis of memory prototypes and working principles in Java

    This article mainly explains its working principle in detail by analyzing the stack, heap and constant pool of Java memory allocation. 1. Java virtual machine memory prototype register: We cannot control the stack in the program: it stores basic types of
    2025-01-16
  • How to execute Linux commands in java

    How to execute Linux commands in java

    The example in this article describes how java executes Linux commands. Share it with everyone for your reference. The specific implementation method is as follows: Copy the code as follows: public class StreamGobbler extends Thread { InputStream is; Stri
    2025-01-15
  • Detailed explanation of transaction management examples in Spring

    Detailed explanation of transaction management examples in Spring

    This article describes transaction management in Spring with examples. Share it with everyone for your reference. The specific analysis is as follows: Transaction introduction: Transaction management is an essential technology in enterprise application de
    2025-01-15
  • Example of gypsophila effect implemented in java

    Example of gypsophila effect implemented in java

    The example in this article describes how to achieve the starry sky effect in Java. Share it with everyone for your reference. The specific implementation code is as follows: Copy the code as follows: import java.awt.*; public class Main {public static vo
    2025-01-15
  • Java pinball game code based on swing

    Java pinball game code based on swing

    The example in this article describes the pinball game code implemented in Java based on swing. Share it with everyone for your reference. The main function code is as follows: Copy the code as follows: package Game;import java.awt.Graphics;import java.aw
    2025-01-15
  • Java hunting and shooting game code based on Swing

    Java hunting and shooting game code based on Swing

    The example in this article describes the hunting and shooting game code implemented in Java based on Swing. Share it with everyone for your reference. The specific implementation code is as follows: Copy the code as follows: package Game;import java.awt.
    2025-01-15
  • Advanced chapter on writing Java Zhihu crawler from scratch

    Advanced chapter on writing Java Zhihu crawler from scratch

    Speaking of crawlers, using the URLConnection that comes with Java can achieve some basic page crawling functions, but for some more advanced functions, such as redirection processing and HTML tag removal, just using URLConnection is not enough. Here we c
    2025-01-15
  • Write Java Zhihu crawler with zero foundation to crawl Zhihu answers

    Write Java Zhihu crawler with zero foundation to crawl Zhihu answers

    In the early stage, we crawled the title under this link: http://www.zhihu.com/explore/recommendations. But obviously this page cannot get the answer. A complete question page should be like this link: http://www.zhihu.com/quest
    2025-01-15
  • Write Java Zhihu crawler from scratch to obtain content recommended by Zhihu editors

    Write Java Zhihu crawler from scratch to obtain content recommended by Zhihu editors

    Zhihu is a real online Q&A community with a friendly, rational and serious community atmosphere that connects elites from all walks of life. They share each other's professional knowledge, experience and insights, and continuously provide high-qua
    2025-01-15
  • Preparation work for writing Java Zhihu crawler from scratch

    Preparation work for writing Java Zhihu crawler from scratch

    Let's start with the same thing as before. Let's talk about the ideas of making a crawler and the knowledge that needs to be prepared. Experts, please ignore it. First, let’s think about what we want to do and list some simple requirements. The re
    2025-01-15