current location:Home > Technical Articles > Java
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- AVL Trees
- AVL Tree is a balanced binary search tree. The post introduced binary search trees. The search, insertion, and deletion times for a binary tree depend on the height of the tree. In the worst case, the height is O(n). If a tree is perfectly balanced–i
- javaTutorial 642 2024-07-25 08:04:13
-
- The AVLTree Class
- The AVLTree class extends the BST class to override the insert and delete methods to rebalance the tree if necessary. The code below gives the complete source code for the AVLTree class. package demo; public class AVLTree
- javaTutorial 350 2024-07-25 07:04:43
-
- Understanding Value Types (Project Valhalla)
- Project Valhalla is an ongoing effort by the OpenJDK community to introduce Value Types to the Java platform. Value Types are a new kind of type that allows more efficient and flexible data handling by providing a way to model immutable data without
- javaTutorial 941 2024-07-25 07:04:33
-
- Designing Classes for AVL Trees
- Since an AVL tree is a binary search tree, AVLTree is designed as a subclass of BST. An AVL tree is a binary tree, so you can define the AVLTree class to extend the BST class, as shown in Figure below. The BST and TreeNode classes were defined in Sec
- javaTutorial 300 2024-07-25 06:38:22
-
- Exception Handling in Spring Boot
- Exception handling is a critical part of building robust and user-friendly applications. In Spring Boot, we can handle exceptions in various ways to ensure our application remains stable and provides meaningful feedback to users. This guide will cove
- javaTutorial 559 2024-07-25 06:35:12
-
- Creating Custom Annotations for Validation in Spring Boot
- Creating Custom Annotations for Validation in Spring Boot 1. Overview While Spring standard annotations (@NotBlank, @NotNull, @Min, @Size, etc.) cover many use cases when validating user input, there are times when we need to create
- javaTutorial 439 2024-07-25 01:52:13
-
- How to use project Lombok
- Project Lombok is a Java library that helps reduce boilerplate code by automatically generating commonly used methods and annotations. It provides annotations that can simplify and reduce the verbosity of your Java classes, making your code more read
- javaTutorial 804 2024-07-24 19:26:41
-
- SOLID Oriented Development
- In software development, code maintenance, extension, and flexibility are important to the long-term success of a project. The SOLID principles were formulated to guide developers in creating code that is easier
- javaTutorial 658 2024-07-24 16:37:00
-
- Understanding the Memento Design Pattern in Java
- Problem The Memento pattern addresses the need to capture and restore an object's internal state without violating its encapsulation. This is useful in scenarios where you want to implement undo/redo functionality, allowing an object to revert
- javaTutorial 445 2024-07-24 16:06:57
-
- Object creation
- How objects are created The line Vehicle minivan = new Vehicle(); declares an object of type Vehicle. The declaration does two things: Declares a variable called minivan of the Vehicle class. Creates a physical copy of the object and assigns the minivan a re
- javaTutorial 1152 2024-07-24 13:07:42
-
- Persistent and Immutable Java LinkedList
- In this article we are going to implement a persistent and immutable variation of the LinkedList in Java with partial structural sharing for time and space efficiency gains. Introduction What is a LinkedList A linked list is a da
- javaTutorial 560 2024-07-24 11:44:21
-
- Exploring Java Record Types
- Java Record Types, introduced in Java 14 as a preview feature and made stable in Java 16, provide a concise way to define immutable data carriers. They are designed to simplify the task of creating simple data-holding classes by reducing boilerplate
- javaTutorial 779 2024-07-24 11:19:31
-
- Introduction to Project Loom
- Project Loom is an ongoing effort by the OpenJDK community to introduce lightweight, efficient threads, known as fibers, and continuations to the Java platform. These new features aim to simplify concurrent programming and improve the scalability of
- javaTutorial 631 2024-07-24 10:56:22
-
- Exception Handling In Java
- When you run a Java code or program, it will either compile and execute or throw an error. When a code throws an, it’s a result of either an error or an exception. An error is more critical. It occurs outside the scope of the code but within the env
- javaTutorial 905 2024-07-24 10:52:41
-
- Binary Search
- Median of two sorted arrays class Solution { public double findMedianSortedArrays(int[] nums1, int[] nums2) { //merge these two arrays and find the median of the newly sorted array int arr[] = new int[nums1.length + nums2.length
- javaTutorial 971 2024-07-24 10:46:41