current location:Home > Technical Articles > Java > javaTutorial
- 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:
-
- Understanding the QuickSort Algorithm: Divide and Conquer
- In the world of computer science, QuickSort stands out as one of the most efficient and widely used sorting algorithms. Its remarkable speed in sorting large data sets is due to its "Split to Split" strategy.
- javaTutorial 894 2025-01-21 02:18:09
-
- Anonymous classes in Java
- Anonymous classes in Java are unnamed classes, ideal for defining and instantiating implementations of classes or interfaces in-place, without the need for additional files. Its single-use nature prevents its reuse. Unlike the classes
- javaTutorial 540 2025-01-20 22:33:15
-
- Keyword:Abstract-Extends,Interface-Implements
- Java abstract Keyword The abstract keyword is used to achieve abstraction in Java. It is a non-access modifier which is used to create abstract class and method. The role of an abstract class is to contain abstract methods. However, it may also con
- javaTutorial 172 2025-01-20 22:20:09
-
- Understanding Generics in Java: A Shopping Cart Example with Custom Classes
- Java generics are essential for writing type-safe, reusable code. They enable the creation of classes, methods, and interfaces that can handle various data types, enhancing code robustness and flexibility. This article illustrates generics using a s
- javaTutorial 1045 2025-01-20 22:14:13
-
- What is the null literal and how can it be used in Java applications?
- NullPointerExceptions: A common Java pitfall. Let's explore the null literal and its uses in Java programming. Feel free to add your insights in the comments! In Java, null signifies the absence of a value or a reference that doesn't point to any o
- javaTutorial 773 2025-01-20 22:11:15
-
- Compression algorithms in Parquet Java
- Apache Parquet is a columnar storage format targeted at analytical workloads, but it can be used to store any type of structured data, addressing a variety of use cases. One of its most notable features is the ability to efficiently compress data using different compression techniques at both stages of the processing process. This reduces storage costs and improves read performance. This article explains Parquet's file compression in Java, provides usage examples, and analyzes its performance. compression technology Unlike traditional row-based storage formats, Parquet uses a columnar approach, allowing the use of more specific and efficient compression techniques based on locality and value redundancy of the same type of data. Parquet is written in binary format
- javaTutorial 989 2025-01-20 18:04:12
-
- Tomcat Architecture Series-verview & Basic Concepts
- A Deep Dive into Tomcat Architecture: A Comprehensive Guide ? introduction Apache Tomcat is one of the most popular Java web servers and servlet containers, powering millions of web applications around the world. This article will provide a comprehensive overview of Tomcat's architecture to help developers understand its inner workings. Table of contents What is Tomcat? Architecture overview core components Request processing flow Key Features best practices What is Tomcat? 1.1 Brief history First released in 1999, Tomcat has evolved significantly over the years, with the latest stable version being To
- javaTutorial 830 2025-01-20 12:07:10
-
- Passing Properties in Java
- Java Property Passing Mechanisms: A Comprehensive Guide Java's parameter-passing mechanism is crucial for developers. This guide explores the various ways properties are passed in Java, impacting data manipulation within methods and classes. Java emp
- javaTutorial 1030 2025-01-20 06:06:11
-
- Mastering Java Logging: Best Practices for Effective Application Monitoring
- Explore my Amazon books! Follow me on Medium for more insights and support my work. Thank you! Effective Java logging is often overlooked, yet crucial for swift issue resolution. This article shares expert techniques for robust Java application lo
- javaTutorial 274 2025-01-20 06:04:10
-
- Using nested annotations for key-value pairs in a custom annotation
- introduction In my previous article "Using HashMap in Custom Annotations", I explained how to use HashMap in annotations using enumeration constants. Nested annotations can also be used to map key-value pairs. List of supported types in annotations annotation Two custom annotations are required. The first annotation (such as MapItem) contains a key-value pair, and the second annotation (such as MapItems) contains a list of MapItem annotations. Custom annotation @MapItem The annotation @MapItem represents a single key-value pair. @Target(ElementType.FIELD) public @interface MapItem { St
- javaTutorial 411 2025-01-20 04:04:10
-
- 'Key Syntax Differences in Object-Oriented Programming: Python vs. Java”
- Object-oriented programming: Detailed explanation of classes and objects (Comparison of Python and Java) This article will use Python and Java code examples to compare and explain the concepts of classes and objects, as well as the usage of constructors. 1. Classes and Objects Python: # Student class definition class Student: name = "Momo" #Create object s1 of Student class s1 = Student() print(s1.name) Java: // Student class definition class Student { String na
- javaTutorial 699 2025-01-20 00:04:13
-
- Inheritance
- Detailed explanation of Java inheritance mechanism: the cornerstone of building object-oriented programs The inheritance mechanism in Java allows an object to inherit all properties and behaviors of its parent object, and is the core concept of object-oriented programming (OOPs). Through inheritance, we can create a new class based on an existing class, reuse the methods and fields of the parent class, and add new methods and fields on this basis. What is inheritance? The Java inheritance mechanism allows one class (subclass or derived class) to inherit the properties and methods of another class (superclass or parent class). Subclasses can access members (fields and methods) of the superclass, enforcing reuse rules, and promoting class hierarchy. Inheritance embodies the "IS-A" relationship, also known as the parent-child relationship. Why use Java inheritance?
- javaTutorial 238 2025-01-19 18:08:10
-
- Leetcode . Online Stock Span
- Problem-solving ideas Can I use previously calculated span results? method Save the stock price and its span in an array. When the price of the last day is less than the current price, jump to the date of the last day span. complexity Time complexity: O(n) Space complexity: O(n) code import java.util.ArrayList; class StockSpanner { ArrayList list; public StockSpanner() { list = ne
- javaTutorial 545 2025-01-19 16:04:11
-
- Flyway Migrations in Multi-Module Gradle Projects (Clean Architecture)
- Automating Database Migrations in Java with Flyway Database migrations are a crucial aspect of software development, particularly in environments where continuous integration and delivery (CI/CD) are standard practice. As your application grows
- javaTutorial 625 2025-01-19 08:05:08
-
- Array index out of out-of-bounds exception
- Encountering the dreaded ArrayIndexOutOfBoundsException? This guide explains its cause and provides a practical solution. Even if you haven't experienced this error yet, understanding it will save you debugging headaches down the line. The ArrayInde
- javaTutorial 276 2025-01-19 06:05:08