Sudoku Solver: Built a Java program that solves Sudoku puzzles automatically using backtracking. The program takes an unsolved grid and fills in the correct numbers. Concepts used: Recursion, Backtracking, Arrays #Java #Coding #Learning #DSA
Sudoku Solver Java Program with Backtracking
More Relevant Posts
-
Learning Polymorphism in Java Today I explored one of the core concepts of OOPs – Polymorphism. It allows a single method to perform multiple behaviors depending on the object. 🔹 Covered: Compile-time polymorphism (Method Overloading) Runtime polymorphism (Method Overriding) Real examples with Java code Understanding this concept improves code flexibility, reusability, and scalability. 📘 Sharing my handwritten notes + examples for better understanding. #Java #OOP #Polymorphism #Programming #CodingJourney #Learning #JavaDeveloper #SoftwareDevelopment
To view or add a comment, sign in
-
-
#Day_13 of My Java Learning Journey – Writing Functions in Java Today I practiced how to create functions (methods) in Java, and I built a simple program to check whether a number is Even or Odd. 🔥 What I learned today: ✔ How to create a boolean function ✔ How to use if-else conditions inside a method ✔ How to return true/false ✔ How to call a method inside the main() function ✔ How to print the result in the console 🧩 Example I worked on: I created a method IfEven(int a) that: Prints whether the number is Even or Odd Returns a boolean value (true for even, false for odd) This helped me understand functions more clearly and how they improve code structure and reusability. #Java #LearningJourney #100DaysOfCode #Coding #Developer #JavaBeginners #OOP #CodeNewbie
To view or add a comment, sign in
-
-
📘 Day 41 of My Learning Journey Today, I explored two important methods from the java.lang package: getClass() and toString(). 🔹 getClass() Method This method is used to get the runtime class of an object. It helps in understanding the exact class an object belongs to during execution. 🔹 toString() Method This method converts an object into a readable string format. By default, it returns the class name along with the hashcode, but it can be overridden to display meaningful information. 💡 Learning these methods helped me understand how Java represents objects internally and how we can customize their output for better readability. Step by step, improving my understanding of core Java concepts! 🚀 #Java #LearningJourney #Day41 #OOP #Programming #TechSkills
To view or add a comment, sign in
-
-
Continuing my Java learning journey, I’ve recently explored some advanced core concepts that further strengthen object-oriented design and code flexibility. Here are the topics I covered: Object Class and its fundamental methods like toString(), equals(), and hashCode() Interfaces and how they enable abstraction and multiple inheritance in Java Functional Interfaces and their role in supporting lambda expressions and cleaner code Nested Classes and how they help in logically grouping classes and improving encapsulation These concepts helped me understand how Java provides powerful tools to write more modular, reusable, and maintainable code. Step by step, building a deeper understanding of Java and preparing to apply these concepts in real-world applications. #Java #OOP #Programming #LearningJourney #SoftwareDevelopment #CDAC
To view or add a comment, sign in
-
-
Day 38 of Learning Java Today, I explored how a class executes inside the JVM (Java Virtual Machine). Understanding this lifecycle really helped me see what happens behind the scenes when we run a Java program. 🔹 Class Loading • The JVM loads the class into memory • It brings the ".class" file into the system 🔹 Linking Phase • Verification → Checks bytecode for errors • Preparation → Allocates memory for static variables (default values like 0) • Resolution → Replaces symbolic references with actual memory references 🔹 Initialization • Static variables get their actual assigned values • Static blocks are executed 🔹 Execution • Methods start running and the program logic is executed 🔹 Destruction • Objects are destroyed and memory is cleaned up by the Garbage Collector Static variables first get default values during preparation, and later their actual values during initialization. Thanks to my mentor Ashim Prem Mahto for the clear explanations and for always clearing my doubts. #Java #JVM #LearningJourney #Programming #SoftwareDevelopment #BackendDevelopment #CodingLife #JavaDeveloper #TechLearning #StudentLife
To view or add a comment, sign in
-
-
🚀 Learning Java Polymorphism! Today I practiced a simple example of runtime polymorphism in Java using method overriding. 🔹 Created a base class payment 🔹 Extended it with UPI and CreditCard 🔹 Overrode the pay() method in each class 🔹 Used dynamic method dispatch to call different implementations 💡 Output: Pay using UPI Pay using Credit Card This helped me clearly understand how Java decides which method to execute at runtime. 📌 Key Concept: Polymorphism allows for one interface with multiple implementations, making code flexible and reusable. #Java #Programming #LearningJourney #Coding #OOP #PlacementsPreparation #Polymorphism #10000Coders Meghana M
To view or add a comment, sign in
-
-
Understanding the difference between shallow copy and deep copy in Java really changed how I think about object handling and memory. A shallow copy duplicates the reference — meaning changes in one object can unexpectedly affect another. On the other hand, a deep copy creates an entirely independent object with its own memory allocation. This concept might seem small at first, but it becomes critical when working with complex data structures, real-world applications, and avoiding unintended side effects. Key takeaway: Always be clear whether you're copying data or just references. #Java #Programming #Learning #DSA #SoftwareDevelopment
To view or add a comment, sign in
-
-
Same data. Same values. Still stored twice? 🤯 That’s when I realized — Java doesn’t care about values… It cares about objects 🧠 Two objects may look identical, but for Java — they can be completely different ⚠️ And this is where many developers get confused. 🚨 Stop just watching tutorials… Real growth = Practice + Consistency 💯 🔥 Java Daily Practice ☕️ 👉 Join & start today 🔗 https://lnkd.in/gfhqgjGd 🚀 Here’s a quick challenge 👇 💬 What do you think the output will be? #Java #JavaDeveloper #HashSet #Collections #OOP #Programming #Debugging #BackendDeveloper #Coding #TechLearning #DeveloperTips #LinkedInIndia
To view or add a comment, sign in
-
Day 11 of Learning Java Streams Today I worked on a simple but insightful problem: Extract all digits from a string and calculate their sum. I first approached it in a more step-by-step (brute force style) using streams: Converted characters to objects Filtered digits Converted each digit to String Then to Integer Finally used reduce() to compute the sum While it worked, I realized it involved unnecessary conversions and overhead. Then I explored a more optimized approach: Stayed within IntStream Filtered digits directly Used Character.getNumericValue() Leveraged built-in sum() This made the solution cleaner, faster, and more efficient. Key Learning: Choosing the right stream type (IntStream vs Stream<T>) can significantly simplify logic and improve performance. Small improvements like avoiding unnecessary transformations can make code more readable and efficient. #Java #JavaStreams #CodingJourney #LearningInPublic #BackendDevelopment #ProblemSolving #100DaysOfCode
To view or add a comment, sign in
-
-
Continuing my Java learning journey, I’ve recently covered some essential concepts that improve code readability, robustness, and error handling. Here are the topics I explored: Enums and how they provide a type-safe way to define a fixed set of constants Exception Handling and how Java manages runtime errors using try-catch, finally, throw, and throws These concepts helped me understand how to write safer and more predictable programs while improving code structure and maintainability. Gradually progressing towards writing more reliable and production-ready Java applications. #Java #OOP #Programming #LearningJourney #SoftwareDevelopment #CDAC
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