"Exploring Java Strings: Immutable and Unchangeable"

 Day 6 of Java Programming Journey 🚀 Today, I explored one of the most important topics in Java — Strings. Here’s what I learned: 🔹 A String is a collection (sequence) of characters. 🔹 It is a predefined class in Java, introduced in version 1.0. 🔹 The String class is final, which means it cannot be extended. 🔹 Strings in Java are immutable, meaning once created, their values cannot be changed. 🔹 There are two ways to create a String: 1️⃣ Using String Literals String name = "Java"; 2️⃣ Using the new keyword String name = new String("Java"); 10000 Coders #100DaysOfCode #LeetCode #Java #CodingJourney #ProblemSolving #Developer #Programming #LearnInPublic #Coding #10000Coders

  • graphical user interface, text, application

To view or add a comment, sign in

Explore content categories