👉 Day 26 of My Java Learning Journey 🥳 🚀 Exploring Multi-Dimensional Arrays in Java ☕ When I first learned arrays, I thought “Cool, I can store a list of items.” Then came multi-dimensional arrays, and it felt like unlocking another level in Java 🎮. A multi-dimensional array is basically an array of arrays. For example int[][] numbers = { {1, 2, 3}, {4, 5, 6} }; Here, it’s like a table rows and columns 📊. You can access any element using numbers[row][column]. So, numbers[1][2] gives 6. Yesterday, I was visualizing data in rows and columns for a project. That’s when I realized “Hey, this is just like using 2D arrays in Java!” It’s amazing how every small concept connects to real-world logic 🔄. Learning one concept at a time builds the foundation of a strong backend developer. Keep going, stay consistent, and your logic will evolve every day 🌱.. #Java #BackendDevelopment #Programming #CodingJourney #LearnInPublic #100DaysOfCode #JavaDeveloper #CodeNewbie #TechCareer #SoftwareDevelopment #DeveloperCommunity #CodeWithJava #ConsistencyIsKey #ProgrammersLife #BuildInPublic
Yash Panchal’s Post
More Relevant Posts
-
🏹 Day 27 of My Java Learning Journey 🎉 🚀 Understanding the length Property in Java Arrays ☕ Ever wondered how to find how many elements your Java array can hold? 🤔 That’s where the length property comes in your quick way to know the size of an array! In Java, every array has a built-in variable called length that tells you how many elements it can store. Example 👇 int[] numbers = {10, 20, 30, 40, 50}; System.out.println(numbers.length); When I first started with arrays, I used to write loops that went out of bounds until I discovered length. It saved my code from ArrayIndexOutOfBoundsException more times than I can count! 😅 Now, it’s my go-to check before every loop. 💡 Remember: length (for arrays) is a property, not a method. For strings, it’s length() - notice the parentheses! 🔥 Every small concept you learn adds a brick to your coding foundation. Keep building consistently! #Java #BackendDevelopment #CodingJourney #LearnInPublic #100DaysOfCode #JavaDeveloper #TechCareer #ProgrammingTips #CodeNewbie #Consistency
To view or add a comment, sign in
-
-
🎆🔥 Day 48 of My Java Learning Journey 🙌 Strings in Java -> More Than Just Text ☕ Ever wondered why Java Strings are so powerful yet so tricky? A String in Java isn’t just letters it’s a sequence of characters wrapped in a class that gives us superpowers like concatenation, comparison, and manipulation. 💭 Think of a String as a bracelet of characters each bead represents a letter, and once you make the bracelet (String), it’s hard to modify it directly because it’s immutable. If you want to change it, you create a new bracelet (new String) instead! 🧠 Code Example: String name = "Yash"; String greeting = "Hello " + name; System.out.println(greeting); // Output: Hello Yash To modify repeatedly, use: StringBuilder sb = new StringBuilder("Java"); sb.append(" Rocks!"); System.out.println(sb); // Output: Java Rocks! 📘 Lesson: Strings are immutable that’s what makes Java efficient and secure. Every time you learn something small like this, your backend journey becomes stronger 💪. 🚀 Keep building, keep growing consistency turns learners into professionals! #Java #BackendDevelopment #StringInJava #CodingJourney #LearnInPublic #100DaysOfCode #JavaDeveloper #ProgrammersLife #CodeNewbie #SoftwareDevelopment #TechCareer #LearningNeverStops #Motivation #KeepLearning #CodeSmart #JavaBasics #CareerGrowth #DeveloperJourney #CodingCommunity #Consistency
To view or add a comment, sign in
-
-
⚙️ How Java Works (Step-by-Step) Java is a high-level, object-oriented programming language. What makes it special is that it can run anywhere — thanks to the Java Virtual Machine (JVM). Here’s how it actually works 👇 ⸻ 🧩 1. You write code (Java Source Code) You create a file like: class Hello { public static void main(String[] args) { System.out.println("Hello, World!"); } } This file is saved as Hello.java. 🧮 2. Compilation The Java compiler (javac) converts your human-readable code into bytecode: Hello.java → Hello.class Bytecode isn’t machine code yet — it’s an intermediate form that can be executed by any system with a JVM. ⸻ 🧠 3. Execution by JVM When you run your program: java Hello The Java Virtual Machine (JVM) reads the bytecode and: • Translates it into machine code (specific to your OS and CPU) • Manages memory and garbage collection • Ensures security and platform independence ⸻ 🌍 4. Platform Independence Because of JVM, Java can run on any device — Windows, Mac, Linux, Android — without changing the code. That’s why Java’s famous slogan is: “Write Once, Run Anywhere.” ⸻ ⚡ Quick Summary Step Process Tool 1 Write code .java file 2 Compile code javac → .class (bytecode) 3 Run code java → JVM executes it 4 Platform independence Runs on any system Er.Vansh Rajpoot 👇 #Java #HowJavaWorks #Programming #Coding #TechLearning #JavaDeveloper #CodeLife #SoftwareEngineering #LearnToCode #TechEducation #Programmer #ObjectOrientedProgramming #JVM #JavaLanguage #TechWorld #DevelopersCommunity #CodeWithJava #Technology #ITLearning #ComputerScience #CodeJourney #JavaProgrammer #CodeDaily #WriteOnceRunAnywhere #CodingLife
To view or add a comment, sign in
-
-
🚀 Day 45 /180 – Java Full Stack Journey 🚀 Today, I learned about the do-while loop and explored the use cases of the while loop in Java. 💻 🔹 While Loop Syntax: while (condition) { // code to be executed } ✅ The while loop checks the condition before executing the block of code. It’s commonly used when the number of iterations isn’t known in advance. 🔹 Do-While Loop Syntax: do { // code to be executed } while (condition); ✅ The do-while loop executes the block at least once, even if the condition is false. It’s useful when you want your code to run first and check the condition later. 💡 Practical Task: I also worked on a “Decimal to Binary Conversion” program using the while loop — a great way to strengthen logic-building and looping concepts in Java. 🔢 Learning every day is taking me one step closer to becoming a proficient Java Full Stack Developer! 💪 #Java #JavaProgramming #FullStackDevelopment #JavaDeveloper #CodingJourney #Programmer #SoftwareDevelopment #SoftwareEngineer #DeveloperCommunity #LearningToCode #DoWhileLoop #WhileLoop #CodeNewbie #TechJourney #WomenInTech #100DaysOfCode #CodeLife #CodingIsFun #LogicBuilding #ProgrammersLife #LearnCoding #TechSkills #BackendDevelopment #FrontendDevelopment #CodeDaily #ProgrammingCommunity #StudentsWhoCode #Developers #CodingMotivation #BuildInPublic
To view or add a comment, sign in
-
#DAY50 #100DaysOFCode | Java Full Stack Development #Day50 of my #100DaysOfCode – Java Topic->ArrayList In java Definition: ArrayList is a resizable array in Java that can grow or shrink in size dynamically. It is part of the java.util package and implements the List interface. Type: Class Package: java.util Introduced in: JDK 1.2 Implements: List, RandomAccess, Cloneable, Serializable Key Characteristics Stores elements in an ordered sequence (insertion order maintained). Allows duplicate elements. Allows null values. Dynamic resizing – increases size automatically when needed. Provides fast random access using indexes. Not synchronized (not thread-safe). Advantages Dynamic size management. Easy element access using index. Maintains insertion order. Disadvantages Slower for insertions or deletions in the middle. Not synchronized by default. A big thanks to my mentor Gurugubelli Vijaya Kumar Sir and the 10000 Coders for constantly guiding me and helping me build a strong foundation in programming concepts. #Java #Coding #Programming #100DaysOfCode #JavaProgramming #CodeNewbie #LearnToCode #Developer #Tech #ProgrammingTips #JavaDeveloper #CodeDaily #DataStructures #CodingLife
To view or add a comment, sign in
-
#DAY65 #100DaysOFCode | Java Full Stack Development #Day65 of my #100DaysOfCode – Java 🔹 PriorityQueue in Java 📘 Introduction: A PriorityQueue in Java is a special type of queue where elements are processed based on their priority rather than the order they are added (FIFO). The element with the highest priority (or lowest value by default) is served first. 🧩 Package: java.util.PriorityQueue ⚙️ Key Features: It does not allow null values. Duplicate elements are allowed. Elements are ordered according to their natural ordering or by a custom comparator. It is not thread-safe. For thread-safe implementation, use PriorityBlockingQueue. Based on a min-heap data structure (the smallest element has the highest priority). 🧠 Syntax: PriorityQueue<Type> pq = new PriorityQueue<>(); 🧰 Example: import java.util.PriorityQueue; public class Main { public static void main(String[] args) { PriorityQueue<Integer> pq = new PriorityQueue<>(); pq.add(25); pq.add(10); pq.add(30); System.out.println("PriorityQueue: " + pq); System.out.println("Head element: " + pq.peek()); // smallest element pq.poll(); // removes head element System.out.println("After removal: " + pq); } } 🖥️ Output: PriorityQueue: [10, 25, 30] Head element: 10 After removal: [25, 30] 💡 Use Cases: Task scheduling (e.g., CPU jobs based on priority) Dijkstra’s shortest path algorithm Huffman coding Event-driven simulations A big thanks to my mentor Gurugubelli Vijaya Kumar Sir and the 10000 Coders for constantly guiding me and helping me build a strong foundation in programming concepts. #Java #Coding #Programming #100DaysOfCode #Java #programming #CodeNewbie #LearnToCode #Developer #Tech #ProgrammingTips #JavaDeveloper #CodeDaily #DataStructures #CodingLife
To view or add a comment, sign in
-
Day 27-of Java Learning Series 🔍 Exploring Functional Interfaces in Java — A Deep Dive into Clean, Expressive Code Today, I deepened my understanding of Functional Interfaces in Java — a concept that empowers cleaner, more expressive code through functional programming. ✨ What makes an interface "functional" — a single abstract method that unlocks powerful design patterns 🧠 Four distinct ways to implement them: Regular class Inner class Anonymous inner class Lambda expression (my personal favorite for its elegance!) 🔍 I explored: Syntax differences across these approaches and how each impacts readability and flexibility Real-world examples like Runnable, Comparator, and Comparable that bring this concept to life This hands-on learning helped me appreciate how Java balances structure with modern coding paradigms. Each implementation method has its own flavor, but lambda expressions stood out for their elegance and clarity. 📢 If you're passionate about Java, backend development, or simply love breaking down concepts step by step — let’s connect and grow together! #JavaLearning #FunctionalInterfaces #LambdaExpressions #BackendDevelopment #WomenInTech #CodeNewbie #InterviewPrep #TechForGood #JavaConcepts #DailyLearning #SowmyaLearns #LinkedInLearning #CleanCode #ProgrammingTips #TechCommunity #JavaDeveloper TAP Academy
To view or add a comment, sign in
-
-
🚀 Day 68 – Java Collections Deep Dive (ArrayList with Custom Objects) Today, I worked on an interesting concept in Java: Using ArrayList to store and filter custom objects (Student class). Here’s what I implemented: 🔵 Created a Student class with fields → ID, Name, Age, Marks 🔵 Stored multiple Student objects inside an ArrayList 🔵 Printed all records using an enhanced for-each loop 🔵 Used removeIf() with Lambda Expressions to filter data based on dynamic conditions • 🔵 Remove students with marks < 85 • 🔵 Remove students with age < 25 • 🔵 Remove students with name length < 3 ✨ Key Takeaway: Modern Java features like Lambdas + Collection API make filtering and processing object lists extremely clean, readable, and powerful. Feeling great progressing one step at a time! More concepts loading… 🔥 10000 Coders Gurugubelli Vijaya Kumar #Day68 #Java #Collections #ArrayList #LambdaExpressions #CodingJourney #LearningInPublic #JavaDeveloper
To view or add a comment, sign in
-
🚀 #Day53 of My Java Journey — Inheritance in Java Today, I learned about Inheritance, a core pillar of Object-Oriented Programming. 𝐈𝐧𝐡𝐞𝐫𝐢𝐭𝐚𝐧𝐜𝐞 allows a class (child) to acquire properties and behaviors from another class (parent). This helps in code reusability and reduces duplication. 👉In Java, inheritance is implemented using the extends keyword: 𝑬𝒙: class Child extends Parent { } This means Child class automatically gets access to all non-private members of the Parent class. 𝗧𝘆𝗽𝗲𝘀 𝗼𝗳 𝗜𝗻𝗵𝗲𝗿𝗶𝘁𝗮𝗻𝗰𝗲 𝗶𝗻 𝗝𝗮𝘃𝗮: 1) Single-Level Inheritance → One parent and one child class. 2) Multilevel Inheritance → Grandparent → Parent → Child (a chain of inheritance). 3) Hierarchical Inheritance → One parent class with multiple child classes. 4) Multiple Inheritance→ Not allowed with classes due to ambiguity (Diamond Problem). ✅ But it is possible with Interfaces. 5) Hybrid Inheritance → Combination of two or more types of inheritance. 𝙈𝙚𝙩𝙝𝙤𝙙 𝙊𝙫𝙚𝙧𝙧𝙞𝙙𝙞𝙣𝙜: A child class can change the implementation of a parent class method using @𝑶𝒗𝒆𝒓𝒓𝒊𝒅𝒆 annotation. 🔗𝘾𝙤𝙣𝙨𝙩𝙧𝙪𝙘𝙩𝙤𝙧 𝘾𝙝𝙖𝙞𝙣𝙞𝙣𝙜: When inheritance happens, constructors are called in order: If parent has default constructor, Java automatically calls super(). If parent has parameterized constructor, we must call super(args) manually. *️⃣𝒔𝒖𝒑𝒆𝒓() or 𝒕𝒉𝒊𝒔() must be the first statement in a constructor. 10000 Coders #Java #OOP #Inheritance #CodingJourney #LearningByDoing #JavaProgramming
To view or add a comment, sign in
-
-
🚀 Day 49 of 180 – Java Full Stack Journey Today, I explored an interesting concept in Java — Shallow Copying 🧩 🔹 What I Learned: In Java, shallow copy is used when we want to create an exact duplicate of an object. It copies the object’s field values, but if the object contains references to other objects, those references are shared between the original and the copied object. ⚠️ Key Takeaway: The main disadvantage of shallow copying is that changes made to the copied object also reflect in the original object, since both share the same reference. 🔍 I also learned about the clone() method, which is commonly used to perform shallow copying in Java. I practiced this concept through a problem to understand how cloning works in real time. 💡 Simple Real-Life Example: Imagine three students joining the same institute for a Java Full Stack course. All three have the same course, same fees, and same institute location. Instead of writing separate details for each student, we can create one set of data (like course fees and place) for the first student and copy it for the other two — this is similar to using shallow copy. However, if one student later shifts to another branch and we update their institute location, the change also affects the original student’s data, since both share the same reference. 👉 To avoid this issue, we use Deep Copy, where a complete and independent copy of the object is made — and that’s what I’ll be learning tomorrow! 🎥 I’ve attached a short video/pictures demonstrating my code and output for better understanding. Every day is a step forward in mastering Java and Object-Oriented Programming! 💪 #JavaLearning #JavaProgramming #CoreJava #JavaDeveloper #CodingJourney #CodeNewbie #ProgrammersLife #LearnToCode #OOPsConcepts #CloningInJava #ShallowCopy #DeepCopy #TechLearning #SoftwareDevelopment #FullStackDeveloper #DeveloperJourney #StudentDeveloper #100DaysOfCode #DailyLearning #CodingCommunity #WomenInTech #TechEducation #CodeEveryday #DeveloperMindset #LearningNeverStops
To view or add a comment, sign in
Explore related topics
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