📘 Day 15 | Core Java Series Java has primitive data types, but collections work only with objects. That’s where Wrapper Classes come in 👇 This visual explains: 👉 Primitive vs Wrapper mapping 👉 Why wrapper classes are needed Remember this: Primitive → value Wrapper → object Once this is clear, collections and autoboxing make much more sense. 📌 Save this for revision 💬 Feedback is welcome #Java #CoreJava #LearningInPublic #JavaBasics #Programming
Understanding Java Wrapper Classes for Collections
More Relevant Posts
-
🎯 Today’s Java lesson: Encapsulation Learned how data hiding, private variables, getters, setters, and validation work together to protect data and keep code clean, secure, and maintainable. One step closer to writing real-world Java code 💻☕ #Java #OOP #Encapsulation #LearningJourney #Programming
To view or add a comment, sign in
-
-
📘 Day 28 | Core Java Series Encapsulation is one of the most important pillars of Object-Oriented Programming in Java. It helps protect data and allows controlled access using methods. Remember this: Encapsulation = Data hiding + Controlled access If this concept is clear, writing secure and maintainable code becomes much easier. 📌 Save this for revision 💬 Feedback is welcome #Java #CoreJava #OOP #Encapsulation #LearningInPublic
To view or add a comment, sign in
-
-
💡 Priority Queue Implementation using Array in Java Today I implemented a Priority Queue in Java using arrays, where elements are removed based on their priority (smallest value first) instead of FIFO order. I used a simple approach: • Insert elements using enqueue() • Find the highest priority element using loop • Remove it using dequeue() This helped me understand how priority queues work internally and how they are useful in task scheduling, operating systems, and real-time applications. Step by step, building strong fundamentals in Data Structures. 🚀 #Java #DataStructures #PriorityQueue #Programming #LearningByDoing
To view or add a comment, sign in
-
📘 Day 20 | Core Java Series The `static` keyword is one of the most important concepts in Java. This visual explains: 👉 static variables 👉 static methods 👉 static blocks 👉 static classes Remember this: static → class level non-static → object level Once this is clear, Java execution flow makes much more sense. 📌 Save this for revision 💬 Feedback is welcome #Java #CoreJava #LearningInPublic #JavaBasics #Programming
To view or add a comment, sign in
-
-
📘 Day 30 | Core Java Series The Collections Framework is where Core Java concepts meet real-world programming. This visual explains the basics: 👉 List 👉 Set 👉 Map Remember this: List → Order matters Set → Uniqueness matters Map → Key–Value matters This marks the end of my Core Java learning series. Advanced Java topics coming next 🚀 📌 Save this for revision 💬 Feedback is welcome #Java #CoreJava #Collections #LearningInPublic #Programming
To view or add a comment, sign in
-
-
Week 3 : Collection framework in java Day 11 : Collection framework : A Collection represent a group of object java collections provide classes and interfaces. Why need do we need Collections : We need collections for efficient storage and better manipulation of data in java. 1) Resize of an array. 2) Insert an element in between. 3) Delete and element in between. 4) Apply certain operations to change the array. Collection : The root interface for all the other collection types. 1) List : An ordered Collection that can contain duplicate elements . Example : arraylist, Linkedlist etc. 2) Set : A collection that cannot contains duplicate elements. Example : Hashset, Treeset. 3) Queue : A collection designed for holding elements prior to processing. 4) Deque : A double ended queue that allows insertion and removal at both ends. 5) Map : An interface that represents a collection of key value pairs . #java #backend #programming #collectionframeworks #learning #advancedjava EchoBrains
To view or add a comment, sign in
-
-
Practiced string filtering in Java using startsWith() and toLowerCase() 💻 Learned how to handle case-insensitive comparisons and loop through arrays efficiently. Small logic, but strong fundamentals 🚀 #Java #CoreJava #Programming #LearningByDoing #SoftwareEngineer #JavaDeveloper
To view or add a comment, sign in
-
-
Mutable vs Immutable Strings in Java In Java, the String class is immutable, meaning once an object is created, its value cannot be changed. Any operation like concatenation creates a new object in memory, which impacts performance when used repeatedly. To handle frequent modifications, Java provides mutable string classes: -> StringBuilder → Faster, not thread-safe (best for single-threaded tasks) -> StringBuffer → Thread-safe, synchronized, but a bit slower Choosing the right type improves performance, memory usage, and code efficiency. TAP Academy #Java #JavaDeveloper #Programming #CodingConcepts #LearningJourney 🚀
To view or add a comment, sign in
-
-
Day 9 of 100 | Encapsulation Today I worked on Encapsulation in Java — and it made more practical sense than ever. Encapsulation isn’t just a definition. It’s about: ✔ Keeping variables private ✔ Controlling access using getters and setters ✔ Preventing unwanted changes to data In simple terms, it’s Java saying: “Access allowed… but only in the right way.” 😄 Small concept on paper, but it changes how you design programs. Step by step, writing cleaner and safer code #Day9 #100DaysOfCode #Java #OOP #Encapsulation #LearningInPublic #BackendJourney
To view or add a comment, sign in
-
-
If you’re learning Java, understanding where variables live in memory is a game-changer 💡 Here’s a simple breakdown 👇 🔹 Instance Variable Declared inside a class, outside methods Belongs to an object Each object has its own copy Stored in Heap memory Gets default values (int → 0, String → null) 🔹 Static Variable Declared with static keyword Belongs to the class, not objects Only one copy shared by all objects Created when the class is loaded Stored in Method Area / Class Area 🔹 Local Variable Declared inside a method or block Works only within that method No default value Must be initialized before use Stored in Stack memory 📌 Memory Rule to Remember Local → Stack Instance → Heap Static → Method Area This concept is very important for: ✅ Interviews ✅ Writing optimized code ✅ Understanding JVM memory If you’re learning Java or revising fundamentals, save this post 🙌 #Java #JavaBasics #OOPs #Programming #JVM #Coding #SoftwareDevelopment #LearningJava
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