Jyotiprakash Mishrablog.jyotiprakash.org·Dec 18, 2024Arrays, Strings, and StringBuilder in JavaWhen diving into Java programming, the foundational tools for handling data and text are Arrays, Strings, and Builders. Each serves a distinct purpose, and together, they form the backbone of efficient data processing and text manipulation. Arrays of...245 readsJava
Nachiketcodewithnachiket.hashnode.dev·Nov 3, 2024Mastering Java Strings: String Pool, Immutability, and the Power of StringBuilderIntroduction Welcome to another deep dive into essential Java concepts! This time, we'll uncover the inner workings of Strings in Java—how they are stored, what makes them efficient, and the game-changing role of StringBuilder. Understanding these fu...10 likesJava
Isha Guptaisha.hashnode.dev·Sep 12, 2024Understanding String Concatenation in JavaThis is super basic, and you might be thinking, "Why does this article even exist? Who doesn’t know string concatenation, right?" But let me tell you something: you might know string concatenation, but as a beginner, when you're writing code, working...string
Anubhav Kumar Guptaanubhav2103.hashnode.dev·Aug 9, 2024Why Strings Are Immutable in Java.Introduction So, you've started your Java journey, huh? Welcome to the club! One of the first things you'll encounter is the concept of Strings. And while they might seem simple at first, there's a crucial aspect that sets them apart from other objec...8 likes·34 readsJava
Anubhav Kumar Guptaanubhav2103.hashnode.dev·Aug 7, 2024String v/s StringBuffer v/s StringBuilder.A simple comparison of String, StringBuffer, and StringBuilder: FeatureStringStringBufferStringBuilder MutabilityImmutable (cannot be changed)Mutable (can be modified)Mutable (can be modified) Thread SafetyNot applicable (immutable)Synchroni...9 likesJava
Pradip Valapradiptechtalks.hashnode.dev·Aug 4, 2024Best practices for efficient string handling in JavaIntroduction Efficient string handling is vital in java, as string are fundamental to many applications. Understanding Java's immutable strings, and the proper use of StringBuilder and StringBuffer can significantly enhance performance. This article ...1 like#StringHandling
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...2 likes·27 readswhystringbuffer
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...1 likewhy stringbuilder
Vikas Guptavikasfeedingdotnet.hashnode.dev·May 31, 2024Welcome to "Mastering C# Strings: Top 15 Interview Questions Answered"!In this comprehensive video, we delve deep into the world of C# strings, covering essential concepts and addressing common interview questions that you're likely to encounter in your C# programming journey. https://www.youtube.com/watch?v=8EPP-fZuQW4...string
Gulshan Kumarperfinsights.hashnode.dev·May 26, 2024Increasing Decreasing StringYou are given a string s. Reorder the string using the following algorithm: Pick the smallest character from s and append it to the result. Pick the smallest character from s which is greater than the last appended character to the result and appen...Java SolutionJava