Bikash Nishankbikash-nishank.hashnode.dev·Jul 21, 2024Exploring Java 8: A Complete Feature GuideTable of Contents Introduction Overview of Java 8 Features Lambda Expressions What is a Lambda Expression? Example 1: Traditional Way vs. Lambda Expression Example 2: Filtering a List Stream API What is a Stream? (java.util.stream API) St...DiscussJava Lambda
Sudarshan Doiphodesudarshandoiphode.hashnode.dev·Jul 6, 2024What do you mean by StringBuffer is a thread safe implementation?StringBuffer: The Thread-Safe String Builder In our previous post, we explored StringBuilder, a powerful tool for efficient string manipulation in single-threaded environments. Today, we'll shift our focus to its synchronized cousin, StringBuffer. Wh...Discuss·2 likeswhystringbuffer
Sudarshan Doiphodesudarshandoiphode.hashnode.dev·Jul 5, 2024What do you mean by StringBuilder is not a thread safe ?Hello Developers 🧑💻, I have been asking this question in interviews most of the time, and I get disappointed by candidates. Everyone knows StringBuilder helps in creating mutable string objects because a normal String object is immutable. But when...Discuss·1 likewhy stringbuilder
Chetan Dattachetan77.hashnode.dev·Jun 20, 202423 Java - Stream (Java8)Stream We can consider stream as a pipeline, through which our collection elements passes through. While elements passes through pipelines, it perform various operations like sorting, filtering etc. Useful when deals with bulk processing. (Can do ...DiscussJavaJava
Manupuri Nithinnithinmanupuri.hashnode.dev·Jun 18, 2024Java 8Functional Interface: functional interface is an interface that has exactly one abstract method. #Single Abstract methods Runnable() ->run(); Callable() -> call(); Comparator()->comp...Discussjava8
hoangkimhoangkim.hashnode.dev·Jun 1, 2024Bài 7: Thực Hành với Functional Interface và Streams API1. Giới Thiệu về Thực Hành với Functional Interface và Streams API Để thực sự làm chủ Functional Interface và Streams API trong Java, chúng ta cần thực hành với các bài toán cụ thể. Bài học này sẽ hướng dẫn bạn thông qua nhiều ví dụ thực tế và bài tậ...Discussjava8
hoangkimhoangkim.hashnode.dev·Jun 1, 2024Bài 6: Streams API và Functional Interface1. Giới thiệu về Streams API Streams API là một phần quan trọng của Java 8, cung cấp một cách tiếp cận mới để xử lý và thao tác trên các tập hợp dữ liệu. Streams cho phép xử lý dữ liệu theo cách khai báo (declarative) thay vì cách mệnh lệnh (imperati...Discussjava8
hoangkimhoangkim.hashnode.dev·Jun 1, 2024Bài 2: Biểu Thức Lambda và Method References1. Giới thiệu về Biểu Thức Lambda và Cú Pháp Biểu thức lambda là một tính năng mới được giới thiệu trong Java 8, giúp đơn giản hóa việc viết các lớp ẩn danh (anonymous classes) có một phương thức duy nhất. Lambda làm cho mã nguồn ngắn gọn hơn và dễ h...Discussjava8
hoangkimhoangkim.hashnode.dev·Jun 1, 2024Bài 1: Giới Thiệu về Functional Interface trong Java1. Tổng quan về Functional Interface Functional Interface là một interface trong Java chỉ chứa một phương thức trừu tượng (abstract method). Các interface này có thể có nhiều phương thức mặc định (default methods) hoặc phương thức tĩnh (static method...Discussjava8
Fernando Valefernandovale.hashnode.dev·May 26, 2024Java 8 Stream API: Filters and MapsThe Java 8 Stream API has made many list operations very convenient, with less code than in previous versions. In this first post, in a series of Stream API features, we’ll see how filters and maps works, and how to reduce our code. Filters One of th...DiscussJava