Accessible Navigation Menu
Creates a semantic navigation menu with proper ARIA attributes, keyboard navigation, current page indication, and responsive hamburger toggle.
Page 14 of 14
Creates a semantic navigation menu with proper ARIA attributes, keyboard navigation, current page indication, and responsive hamburger toggle.
Uses the picture element with multiple sources to serve different images based on viewport size, format support, and pixel density.
Uses native progress and meter elements to display completion status and scalar measurements with proper accessibility attributes.
Uses srcset and sizes attributes to serve appropriately sized images based on viewport, plus art direction with the picture element.
Uses ruby, rt, and rp elements to add pronunciation guides and annotations above East Asian characters, with fallback support.
Creates a content layout using section and aside elements with proper heading hierarchy for main content and complementary sidebar information.
Demonstrates semantic HTML5 elements for structuring content meaningfully, improving accessibility and SEO with proper document outline.
Uses slot elements with named and default slots to create flexible web component templates that accept distributed content from the parent.
Adds structured data using JSON-LD format for Schema.org markup to help search engines understand page content and enable rich results.
Uses the template element to define reusable HTML fragments that can be cloned and inserted into the DOM without rendering until activated.
Uses the time element with datetime attribute to represent dates and times in a machine-readable format for scheduling and display.
Demonstrates common ArrayList operations including add, remove, iterate, sort, and filter with practical examples for managing a list of items.
Uses CompletableFuture to compose asynchronous operations with thenApply, thenCompose, thenCombine, and exception handling for non-blocking pipelines.
Defines custom annotations with different retention policies and demonstrates runtime annotation processing via reflection for metadata-driven behavior.
Defines a custom exception hierarchy with domain-specific exceptions, demonstrating proper exception chaining, message formatting, and multi-catch handling.
Uses the java.time API to work with dates, times, durations, periods, and formatting, demonstrating modern date-time manipulation and parsing.
Uses ScheduledExecutorService to run delayed and periodic tasks, demonstrating fixed-rate and fixed-delay scheduling with proper shutdown handling.
Demonstrates reading and writing files using Java NIO with Path, Files, and BufferedReader, including proper resource management and exception handling.
Implements a generic Box class with type bounds, demonstrating how generics provide compile-time type safety while working with constrained type parameters.
Demonstrates HashMap operations including put, get, merge, computeIfAbsent, and iteration with entrySet, keySet, and forEach methods.
Demonstrates connecting to a database using JDBC, executing parameterized queries with PreparedStatement, and processing ResultSet with proper resource cleanup.
Demonstrates lambda expressions with built-in functional interfaces like Predicate, Function, Consumer, and Supplier for concise and readable code.
Demonstrates LinkedList operations including addFirst, addLast, peek, poll, and bidirectional iteration with ListIterator for queue and deque patterns.
Demonstrates four types of method references (static, instance, arbitrary object, constructor) to create concise and readable functional expressions.
Demonstrates serializing and deserializing objects to JSON format, showing how to persist and transfer structured data between application components.
Demonstrates using Optional to handle potentially absent values safely, with map, flatMap, filter, orElse, and ifPresent operations to avoid NullPointerExcep...
Uses Java pattern matching with switch expressions and type patterns to handle different object types concisely without explicit casts or instanceof checks.
Demonstrates Java record classes as concise immutable data carriers with automatic constructors, accessors, equals, hashCode, and toString methods.
Uses Pattern and Matcher classes to validate email addresses, extract groups, replace text, and split strings with regular expressions.
Demonstrates sealed classes and interfaces to create restricted class hierarchies, enabling exhaustive pattern matching and domain modeling with known subtypes.
Demonstrates advanced Stream collectors including groupingBy, partitioningBy, counting, joining, and teeing for complex data aggregation and transformation.
Shows how to process collections using Java Streams with map, filter, reduce, and collect operations to transform and aggregate data efficiently.
Demonstrates efficient string manipulation using StringBuilder for concatenation, insertion, deletion, and reversal operations in performance-critical code.
Demonstrates Java text blocks for multi-line string literals with proper indentation handling, template formatting, and SQL/JSON/HTML generation.
Creates a fixed thread pool to execute multiple tasks concurrently, demonstrating proper resource management with try-with-resources and shutdown handling.
Demonstrates try-with-resources with custom AutoCloseable objects, ensuring proper resource cleanup even when exceptions occur during resource usage.
Uses GROUP BY ROLLUP and GROUPING to generate hierarchical summary rows with subtotals and grand totals for multi-dimensional analysis.
Uses CASE expressions in SELECT, ORDER BY, and aggregate contexts to implement conditional logic, categorization, and dynamic sorting in queries.
Uses COALESCE, NULLIF, NVL, and GREATEST/LEAST to handle NULL values gracefully in calculations, display formatting, and conditional logic.
Uses Common Table Expressions (CTEs) to break complex queries into named, readable steps for multi-level data transformation and aggregation.
Creates various index types including B-tree, partial, expression, and composite indexes to optimize different query patterns and access paths.
Creates simple and materialized views to abstract complex queries, pre-compute expensive aggregations, and provide simplified data access patterns.
Uses DELETE with subquery conditions to remove specific rows and RETURNING to capture deleted data for audit logging and referential cleanup.
Uses DISTINCT and DISTINCT ON to eliminate duplicate rows and select unique rows based on specific column ordering for data deduplication.
Demonstrates complex WHERE clause filtering with multiple operators including BETWEEN, IN, LIKE, IS NULL, and boolean logic for precise data selection.
Uses GROUP BY with multiple aggregate functions to summarize sales data by category, including count, sum, average, min, and max calculations.
Uses HAVING clause to filter grouped results based on aggregate conditions, combined with WHERE for pre-aggregation row filtering.
Performs INNER JOINs across three tables to combine related data from customers, orders, and products with proper table aliasing and filtering.
Demonstrates INSERT statements with multiple rows, column lists, and ON CONFLICT upsert behavior for inserting or updating data atomically.
Queries and manipulates JSON/JSONB data using operators for extraction, filtering, and modification of nested JSON structures in PostgreSQL.
Uses the MERGE statement to perform conditional INSERT, UPDATE, or DELETE operations based on source-target matching for data synchronization.
Demonstrates ORDER BY with multiple columns, mixed sort directions, NULLS handling, and expression-based sorting for precise result ordering.
Implements keyset pagination using LIMIT and OFFSET for efficient page-by-page result retrieval, with a fallback to cursor-based pagination for large datasets.
Uses a recursive Common Table Expression to traverse hierarchical data structures like org charts, category trees, or bill of materials.
Demonstrates a basic SELECT query with column aliases, literal expressions, and calculated columns for retrieving and shaping data from a table.
Creates a stored procedure with parameter validation, error handling, dynamic SQL, and cursor operations for encapsulating complex business logic.
Demonstrates correlated and non-correlated subqueries in WHERE clauses and SELECT columns to filter and enrich data based on related query results.
Defines a table with comprehensive constraints including primary key, foreign keys, check constraints, unique constraints, and default values.
Demonstrates explicit transaction control with SET TRANSACTION isolation levels, savepoints, and conditional rollback for safe multi-step operations.
Combines result sets using UNION ALL, UNION, INTERSECT, and EXCEPT operators to merge, find common, or find differing rows between queries.
Performs UPDATE with a FROM clause to join additional tables and uses RETURNING to retrieve modified rows for verification and auditing.
Uses window functions like ROW_NUMBER, RANK, LAG, LEAD, and running totals to perform advanced analytics without collapsing result rows.