💻 Day 23 – Strings in Java Today I explored Strings in Java, one of the most fundamental and important concepts. I learned about different types of string handling: 🔹 String – Immutable (cannot be changed) 🔹 StringBuilder – Mutable and faster 🔹 StringBuffer – Mutable and thread-safe Understanding immutability was a key highlight today, as it plays an important role in memory management and performance. 💡 Key takeaway: Choosing the right type of string handling improves both performance and efficiency in Java applications. Continuing to strengthen my core Java concepts step by step 🚀 #Java #Strings #Programming #LearningInPublic #CodingJourney #Day23
Java Strings: Immutable and Mutable Types
More Relevant Posts
-
Day 37/100 – File Handling & Multithreading in Java ⚙️ Today I explored writing data into files using Java along with a basic understanding of multithreading. I worked on creating a program that writes content into a file using a separate thread, which helps in performing tasks concurrently. Key learnings: • Writing data into files in Java • Basics of multithreading using threads • Executing tasks in a separate thread using start() • Understanding how parallel execution improves performance This gave me a glimpse into how real-world applications handle background tasks efficiently. Learning something new every day and connecting concepts step by step. 🚀 #100DaysOfCode #Java #Multithreading #FileHandling #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
-
Day 21– Thread Methods in Java Today I explored how to control threads in Java using different methods. Things I learned: 🔹 start() – begins thread execution 🔹 run() – contains logic (called internally) 🔹 sleep() – pauses thread for a specific time 🔹 join() – ensures one thread finishes before another starts 💡 Key takeaway: Thread methods help manage execution flow and improve control over multithreading behavior. Step by step understanding how Java handles concurrent tasks 🚀 #Java #Multithreading #Threads #Programming #LearningInPublic #Day21 #100DaysOfJava
To view or add a comment, sign in
-
-
Solved Simple Array Sum using LinkedList in Java 8 💻📊 Today I worked on the Simple Array Sum problem and implemented it using LinkedList in Java 8. 💡 What I learned: How to convert a List into a LinkedList Traversing elements efficiently using loops Using Java 8 Streams for cleaner and shorter code ⚙️ Approach: Converted input list into a LinkedList Iterated through elements and calculated sum Also explored stream().mapToInt().sum() for optimized solution 📌 Key Takeaway: Even simple problems help strengthen core concepts like data structures and improve coding efficiency. ⚡ Time Complexity: O(n) ⚡ Space Complexity: O(n) 👨💻 Consistent practice is helping me improve my problem-solving skills step by step. #Java #Java8 #LinkedList #Coding #ProblemSolving
To view or add a comment, sign in
-
-
Day 46 – Understanding Method Overloading in Java ☕ Today I focused on revising the concept of Method Overloading in Java and understanding how it works internally. Topics covered: 🔹 What is method overloading 🔹 How the compiler selects the appropriate method 🔹 Steps involved in method resolution 🔹 Why it is called compile-time polymorphism 🔹 Why it is referred to as early binding Understanding how the compiler decides which method to invoke based on parameters helped me gain deeper clarity on Java’s execution process. Strengthening my core OOP concepts step by step 🚀 #Day46 #JavaJourney #OOP #MethodOverloading #CoreJava #Consistency
To view or add a comment, sign in
-
Last post we discussed why String is immutable in Java. So what if you need to modify strings frequently? 🤔 That’s where StringBuilder and StringBuffer come in. Both are mutable, but choosing the right one matters. 👉 StringBuilder = faster for single-threaded use 👉 StringBuffer = thread-safe for shared multithreaded use Swipe → to understand the real difference. 💬 Comment “code” for more Java examples. #Java #Backend #JavaDeveloper #Programming #InterviewPrep #StringBuilder
To view or add a comment, sign in
-
Day 49-What I Learned In a Day (JAVA) Today, I focused on understanding the execution flow of static elements in Java. 🔹 Learned about: • Static variables and how they are shared across objects • Static methods and how they can be accessed without object creation • Static initializer (single-line) • Static initializer (multi-line) This helped me clearly understand how Java handles memory and execution at the class level before objects are created. Building strong fundamentals step by step! #Java #Programming #LearningJourney #OOP #TechSkills
To view or add a comment, sign in
-
-
📒 Day 27: final Keyword in Java 🔥 Java’s way of saying: “Modify me? Compile error loading…” 😎 In Java, the final keyword is used to apply restrictions on variables, methods, and classes to ensure immutability and controlled usage in object-oriented programming. 👉 Uses of final keyword: » 🔹 final variable → value cannot be changed once assigned » 🔹 final method → cannot be overridden in a subclass » 🔹 final class → cannot be extended or inherited 💡 Conclusion: The final keyword helps in achieving security, consistency, and controlled design in Java applications. #Java #CoreJava #OOP #Programming #Coding #LearnInPublic #100DaysOfCode #SoftwareDevelopment #JavaDeveloper #CodingJourney #final #finalkeyword
To view or add a comment, sign in
-
Day 55-What I Learned In a Day (JAVA) Today, I learned how to create and use constructors in Java. 🔹 A constructor is a special method used to initialize an object when it is created. 🔹 Constructors are non-static by default, meaning they work with objects and help assign values to instance variables. 🔹 They are automatically executed when an object is created, making object initialization simple and efficient. 🔹 This reduces the need for setting values manually after object creation. Understanding constructors helped me see how Java initializes objects in a structured and efficient way. #Java #OOP #Constructors #LearningJourney #Programming #TechSkills
To view or add a comment, sign in
-
🚀 Exploring Java Collection Framework Today’s session was all about understanding the powerful Java Collection Framework and how it helps in managing and organizing data efficiently. Dived deep into core concepts like interfaces and classes in collections, and explored the three main interfaces: List, Set, and Map. Gained clarity on how these structures differ and where to use them in real-world applications. Focused on the ArrayList class—its properties like dynamic resizing, ordered storage, and index-based access—making it one of the most commonly used collection classes in Java. Also understood the hierarchy of ArrayList, how it is part of the List interface, and how it inherits behavior from abstract classes like AbstractList and AbstractCollection. 📚 A strong foundation in collections is essential for writing efficient and scalable Java applications. TAP Academy #Java #CollectionsFramework #ArrayList #Programming #LearningJourney #FullStackDevelopment
To view or add a comment, sign in
-
-
Multithreading in Java finally clicked for me when I stopped memorizing it… and started visualizing it. 🧠 Here’s the simplest way to understand it: Imagine your application is doing only ONE task at a time. ➡️ Slow ➡️ Blocking ➡️ Poor performance Now introduce multithreading 👇 Multiple tasks run simultaneously: ✔ One thread handles API requests ✔ One processes data ✔ One writes logs Result? Faster and more efficient applications 🚀 But here’s what I learned the hard way: Multithreading is powerful… but dangerous if not handled properly. Common issues I faced: Race conditions Deadlocks Unexpected bugs What helped me: ✔ Proper synchronization ✔ Understanding thread lifecycle ✔ Using ExecutorService instead of manual threads Lesson: Multithreading is not just about speed — it’s about control and correctness. 💬 Have you faced any tricky bugs with multithreading? #Java #Multithreading #BackendDevelopment #SoftwareEngineering #Coding
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development