current location:Home > Technical Articles > Java

  • Mastering Sealed Classes in Java
    Mastering Sealed Classes in Java
    Sealed classes, introduced in Java 15 as a preview feature and made permanent in Java 17, allow developers to control which classes can extend or implement them. This feature is part of Project Amber, which aims to improve developer productivity by e
    javaTutorial 312 2024-07-26 07:43:33
  • Arrays
    Arrays
    MergeSort One of the sorting algorithms with time complexity of O(nlogn) where n is the length of the given array. ///tc : O(nlogn) //sc : O(n) for creating intermediate arrays a, b of size of part of subarray which is of size n class Solution {
    javaTutorial 857 2024-07-25 22:24:23
  • Form Login with Spring Boot and Thymeleaf
    Form Login with Spring Boot and Thymeleaf
    The form-based login is often the first choice to protect the web frontend of a Spring Boot application. It ensures that certain areas of our application are only accessible once a user has authenticated himself with a username and password, and this
    javaTutorial 522 2024-07-25 19:39:43
  • How to Hire an Android Developer for Your Project in 4
    How to Hire an Android Developer for Your Project in 4
    Android has consistently dominated the app development market. By 2023, the Android market OS share is projected to reach 87.4%, according to recent research by Statista. This implies that having an Android app can significantly expand your user base
    javaTutorial 817 2024-07-25 14:38:40
  • Zenoti SDE-nterview Experience (4)
    Zenoti SDE-nterview Experience (4)
    import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.*; public class Zenoti { /*Zenoti dotnet software engineer*/ /*Online test : Status pass*/ p
    javaTutorial 525 2024-07-25 12:58:50
  • Exploring New Horizons: My Java Development Journey
    Exploring New Horizons: My Java Development Journey
    In recent years, I have dedicated myself to several areas of technology, especially systems implementation and customer support. Each experience contributed to diverse knowledge. Recently, a new perspective piqued my interest
    javaTutorial 351 2024-07-25 12:45:52
  • Implementing Rotations
    Implementing Rotations
    An unbalanced tree becomes balanced by performing an appropriate rotation operation. Section, Rebalancing Trees, illustrated how to perform rotations at a node. The code below gives the algorithm for the LL rotation, as illustrated in Figure below.
    javaTutorial 907 2024-07-25 12:17:23
  • Winsen SDE interview experience (4)
    Winsen SDE interview experience (4)
    import java.util.*; public class winsen { /* T : n^2 S: O(1) 2, 3, 5, 7, */ public static int countPrime(int n){ int count=0; for ( int i=2; i
    javaTutorial 704 2024-07-25 11:59:31
  • Item Prefer the use of standard functional interfaces
    Item Prefer the use of standard functional interfaces
    Evolution of APIs with Lambdas: With the introduction of lambdas in Java, practices for writing APIs have changed, such as avoiding the Template Method pattern in favor of static factories or constructors that accept function objects. LinkedHashMap Example: In
    javaTutorial 617 2024-07-25 10:47:31
  • Implementing the delete Method
    Implementing the delete Method
    Deleting an element from an AVL tree is the same as deleting it from a BST, except that the tree may need to be rebalanced. As discussed in Section, Deleting Elements from a BST, to delete an element from a binary tree, the algorithm first locates th
    javaTutorial 594 2024-07-25 10:39:33
  • Interfaces in Java for Loose Coupling
    Interfaces in Java for Loose Coupling
    Why Interfaces, Interfaces are used in Java to achieve loose coupling. which is a design principle whose aim is to reduce the dependencies that exist between many parts of the system. how interfaces enable loose coupling: Abstraction: An interface
    javaTutorial 1283 2024-07-25 10:29:01
  • Overriding the insert Method
    Overriding the insert Method
    Inserting an element into an AVL tree is the same as inserting it to a BST, except that the tree may need to be rebalanced. A new element is always inserted as a leaf node. As a result of adding a new node, the heights of the new leaf node’s ancestor
    javaTutorial 614 2024-07-25 09:14:13
  • Testing the AVLTree Class
    Testing the AVLTree Class
    This section gives an example of using the AVLTree class. The code below gives a test program. The program creates an AVLTree initialized with an array of the integers 25, 20, and 5 (lines 7), inserts elements in lines 11–20, and deletes elements in
    javaTutorial 730 2024-07-25 09:09:31
  • AVL Tree Time Complexity Analysis
    AVL Tree Time Complexity Analysis
    Since the height of an AVL tree is O(log n), the time complexity of the search, insert, and delete methods in AVLTree is O(log n). The time complexity of the search, insert, and delete methods in AVLTree depends on the height of the tree. We can prov
    javaTutorial 775 2024-07-25 09:09:12
  • Day 2
    Day 2
    Be afraid of someone who knows one move but has practised it a thousand times Hello there! I hope you all are busy working on yourselves. So 2/100 day was 'real good'. I planned what I had to study but ended up doing something completely different y
    javaTutorial 434 2024-07-25 08:35:02

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!