current location:Home > Technical Articles > Java

  • Java livereload
    Java livereload
    introduction This article aims to explain how to speed up your development cycle, one important step is to test the code snippet and see the results immediately after saving the code. I've been doing back-end Java and front-end JavaScript development since 1999, and I'm used to using livereload to test JavaScript code, but not enough with Java. Disclaimer: I'm not a big fan of test-driven development (TDD), and the amount of testing depends on my time and mood at the time. Even if you don't write many tests, you can see how useful it can be to play around with a few snippets of code and see the results immediately. LiveTest4j utility https://github.com/hrgda
    javaTutorial 350 2025-01-22 22:23:14
  • Transition Guide: From Java to JavaScript
    Transition Guide: From Java to JavaScript
    Last year, I revisited programming, focusing on Java after a break. My goal was a more challenging language than Python. I dedicated 3-4 months to mastering Java's core concepts: its operational mechanics, object-oriented programming (OOP), memory m
    javaTutorial 352 2025-01-22 22:15:15
  • Wednesday Links - Edition 2
    Wednesday Links - Edition 2
    This week's curated links cover a range of Java and Kotlin topics: JVM Internals & Performance: Understanding JVM Garbage Collector Performance (10 min): Dive into JVM garbage collection optimization. Link ?️ How JVM handles exceptions (4 mi
    javaTutorial 546 2025-01-22 22:07:12
  • ommon Code Smells in Java and How to Fix Them
    ommon Code Smells in Java and How to Fix Them
    Code smells signal potential problems in your Java code, impacting maintainability, readability, and performance. While not always bugs, addressing them keeps your codebase clean and efficient. This article examines five common Java code smells, pro
    javaTutorial 1065 2025-01-22 18:05:14
  • How I am learning java
    How I am learning java
    This article will share my experience on how to use my free time to learn the Java programming language. Here are some learning points: Table of contents language learning personal projects ecosystem language learning First, let me say that Java is not my first programming language, so my learning rate may be different from yours, depending on your experience. Currently, I am learning Java by participating in the Advent of Code challenge, which helps me become familiar with Java's general syntax, package import, file reading, exception handling, data types, etc. This method allows me to gain something almost every day in the learning process. Of course, I will also do some project practice to deepen my understanding. Let's take a look at this part. personal projects Just personally
    javaTutorial 370 2025-01-22 12:06:11
  • You Aren't Gonna Need It Principle (YAGNI) Explained in  Seconds
    You Aren't Gonna Need It Principle (YAGNI) Explained in Seconds
    What is the You Aren't Gonna Need It (YAGNI) Principle? The YAGNI principle is a core tenet of efficient software development, prioritizing simplicity and minimizing unnecessary work. It boils down to this: "Only implement features when you ac
    javaTutorial 205 2025-01-22 10:04:13
  • How can one parse JSON text in a Java application?
    How can one parse JSON text in a Java application?
    JSON: A Versatile Data Format for Server-Client Communication Efficiently sending data from a server to a client for display on a webpage or other visual interface often involves using JSON (JavaScript Object Notation). Let's explore JSON's capabili
    javaTutorial 248 2025-01-22 06:10:13
  • Sociable Unit Test simplified
    Sociable Unit Test simplified
    Struggling to create effective and resilient unit tests? Do your tests frequently fail after refactoring? Or is the process of writing sociable unit tests proving overly challenging and time-intensive? I might have a solution! Introducing UnitSoci
    javaTutorial 765 2025-01-22 04:44:16
  • Implementing Feature Flags with Spring: A Step-by-Step Guide for Feature Deployment
    Implementing Feature Flags with Spring: A Step-by-Step Guide for Feature Deployment
    Feature flags, also known as feature toggles, are a powerful software development technique enabling dynamic feature activation or deactivation. This decoupling of feature deployment from code releases offers superior application control and mitigat
    javaTutorial 584 2025-01-22 04:13:07
  • Merge Sort Algorithm
    Merge Sort Algorithm
    Learn more about the merge sort algorithm The core idea of ​​the merge sort algorithm is the divide and conquer method, that is, "divide and conquer". It recursively divides an array into smaller subarrays until each subarray contains only one element (which is now sorted). It then merges these subarrays into a larger sorted array. It is worth noting that the sorting process occurs during the merge phase, not the split phase. Algorithm demonstration Suppose we have an array to be sorted: We divide the array into two left and right subarrays: Continue recursive splitting until each subarray has only one element: Next, merge and sort these subarrays: smaller values ​​on the left, larger values ​​on the right. Final sorting: Code implementation (Java) The original J
    javaTutorial 946 2025-01-21 22:04:18
  • Difference Java ByteArrayOutputStream.write(int n) with ByteArrayOutputStream.write(byte[] b, int off, int len)
    Difference Java ByteArrayOutputStream.write(int n) with ByteArrayOutputStream.write(byte[] b, int off, int len)
    This example demonstrates downloading an image from a URL using Java's InputStream and OutputStream. Two code snippets are presented, differing in their use of the OutputStream.write() method. Let's analyze the results. Method 1: write(byte[] b, int
    javaTutorial 486 2025-01-21 18:05:13
  • Interface Segregation Principle (ISP) Explained in  Seconds
    Interface Segregation Principle (ISP) Explained in Seconds
    ? Interface Segregation Principle (ISP) Explained Simply The ISP, a core component of the SOLID design principles, states: Clients shouldn't be forced to depend on methods they don't use. Overly broad interfaces, packed with unrelated methods, lead
    javaTutorial 793 2025-01-21 12:07:12
  • Object Orientation in C? Implementing an interface from scratch.
    Object Orientation in C? Implementing an interface from scratch.
    I have always been curious about computers and always thought: "Okay, I know how to use it, but how does it really work?" In the process, I often do a thought experiment: What if I implement it from scratch? It, what would I do? In this article, we will explore how interfaces work in object-oriented programming (using Java), and then implement a humble version of the interface in C. Let's look at an example Our example is simple: calculate the price of a vehicle. If it's a car, the price will be based on its top speed; if it's a motorcycle, the price will be based on its displacement. We first define the behavior of the vehicle using an interface: public class Main { public interface
    javaTutorial 730 2025-01-21 10:05:12
  • Implementation of jaxb-api has not been found on module path or classpath. Error Solution
    Implementation of jaxb-api has not been found on module path or classpath. Error Solution
    Java applications may encounter the following errors when using Java Architecture for XML Binding (JAXB): javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath. - with linked exception: [java.lang.ClassNotFoundException: com.sun.xml.internal.
    javaTutorial 298 2025-01-21 08:07:10
  • Design Patterns Serie — Structural Chapter: Proxy Pattern
    Design Patterns Serie — Structural Chapter: Proxy Pattern
    Design patterns: efficient solutions for common software development challenges. These pre-built solutions prevent "reinventing the wheel," offering answers to frequently recurring problems. However, they aren't one-size-fits-all; develop
    javaTutorial 805 2025-01-21 04:06:16

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28