Best of JavaOctober 2023

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    Is Java Still Keeping Up with Modern Programming Languages

    Java remains relevant in 2023 due to its vast ecosystem, versatility, and use in various domains. Java 21 introduces exciting features like structured concurrency, virtual threads, pattern matching for switch, and string templates. While newer languages like Rust and TypeScript have their advantages, the choice depends on specific project requirements and familiarity with the language.

  2. 2
    Article
    Avatar of lambdatestLambdaTest·3y

    How to Use JUnit ErrorCollector [With Examples]

    The article discusses the usage and benefits of JUnit ErrorCollector in test automation. It explains the different types of Asserts in JUnit, when to use JUnit ErrorCollector, and the advantages of using ErrorCollector in JUnit test scripts.

  3. 3
    Article
    Avatar of gcgitconnected·2y

    All About Infinite Scrolling using React and JavaScript

    Learn how to implement infinite scrolling using React and JavaScript. Explore two methods: using the Window's Scroll and Size Properties, and using the Intersection Observer API. Virtualization improves performance by rendering only the visible items in a list or grid. The Intersection Observer API allows for efficient infinite scrolling without continuous monitoring of the scroll event.

  4. 4
    Article
    Avatar of communityCommunity Picks·3y

    Kotlin vs Java: the 12 differences you should know

    Kotlin and Java have several key differences, including null safety, extension functions, code brevity, coroutines support, data classes, smart casts, checked exceptions, functional programming, primitive types, public fields, wildcard types, and implicit conversions. Kotlin is considered better for Android development due to its concise syntax, null safety, coroutines, and compatibility with Java's libraries. However, Java has a larger ecosystem and more mature tools. The debate over which language is better is subjective and depends on project needs. Kotlin is emerging as the new Android language, but Java is still a valuable language and is unlikely to be completely replaced.

  5. 5
    Article
    Avatar of auth0Auth0·3y

    Java Microservices with Spring Boot and Spring Cloud

    Microservices architecture allows for failover, resiliency, scalability, and agility in systems. Java has a vast open source ecosystem for developing microservice architectures. Spring Boot and Spring Cloud are popular frameworks for building microservices in Java. The article provides an example of building microservices with Spring Boot and Spring Cloud, including service discovery, API gateway, and security implementation.

  6. 6
    Article
    Avatar of javacodegeeksJava Code Geeks·3y

    Core Java Cheatsheet

    The article provides a cheatsheet on core Java concepts, including Java keywords, packages, operators, primitive types, lambda expressions, collections, character escape sequences, output formatting, regular expressions, logging, property files, javac command, jar command, and java command.

  7. 7
    Article
    Avatar of codimisCodimis·3y

    Eliminating NullPointerExceptions in Method Chains

    This article discusses strategies to avoid and handle NullPointerExceptions in chained method calls. It provides several approaches, including null checks, try-catch blocks, Optional wrapping, and a generic method. By implementing these strategies, developers can prevent crashes and improve the reliability of their code bases.

  8. 8
    Article
    Avatar of dzDZone·3y

    AI in Java: Building a ChatGPT Clone With Spring Boot and LangChain

    Learn how to build a ChatGPT clone in Java using Spring Boot, LangChain, and Hilla. The tutorial covers synchronous chat completions and advanced streaming completion. The source code is available on GitHub.

  9. 9
    Article
    Avatar of codimisCodimis·3y

    Migrating the Old Java Date API with Java 8’s Time API

    The article discusses the limitations of the old Java Date API and introduces the new java.time API in Java 8. It highlights the key components and features of the new API, and provides a step-by-step guide on how to migrate to it.