Java Input/Output Journey – Day 1 Starting a new phase in my Java learning — Input & Output Basics 💻 🔹 What I Learned Today: • How to take user input using Scanner class • Reading different data types like String, int, double • Writing simple and interactive Java programs 🔹 Key Methods: • nextLine() → Full text input • nextInt() → Integer input • nextDouble() → Decimal input • next() → Single word 💡 Key Learning: Understanding input is the first step to making programs interactive and user-friendly. 🛠️ Practice Done: Created a program to take name, age, and favorite language from the user. Excited to continue this journey and explore more in Java I/O #Java #JavaDeveloper #CodingJourney #InputOutput #Programming #SoftwareDevelopment #Learning #Hariom #HariomKumar #Hariomcse
Java Input Output Basics with Scanner Class
More Relevant Posts
-
🚀 Day 19/45 – Learning Exception Handling in Java On Day 19 of my Java learning journey, I explored Exception Handling, which is used to handle errors and prevent programs from crashing.This concept is very important for building robust and reliable applications. 📚 What I Learned Today Today I learned: ✔ What exceptions are and why they occur ✔ Using try and catch blocks to handle errors ✔ The role of the finally block ✔ Common types of exceptions in Java 💻 Practice Work To apply my learning, I implemented: • A divide-by-zero exception handling program • An array index error handling example 🎯 Key Takeaway Exception handling ensures that programs run smoothly even when errors occur. It improves the stability and reliability of applications. Understanding how to handle errors properly is a key skill for every developer. #Java #Programming #LearningInPublic #CodingJourney #SoftwareDevelopment #OOP
To view or add a comment, sign in
-
Java Tip Every Beginner Should Know! If you're learning Java, you might have faced this weird issue ,you enter input, but somehow the next input gets skipped! The reason? Mixing nextInt() and nextLine() in the wrong order. Here’s the catch: - nextInt() reads only the number, not the newline (\n) - That leftover newline gets picked up by the next nextLine() Solution: Always use an extra nextLine()after nextInt() to consume the leftover newline. Example: Scanner sc = new Scanner(System.in); int age = sc.nextInt(); sc.nextLine(); // consume leftover newline String name = sc.nextLine(); Key Learning: Understanding how input buffering works is more important than just memorizing methods. #Java #LearningToCode #TechTips #JavaDeveloper
To view or add a comment, sign in
-
🚀 Day 37 – Learning Java Multithreading Today I explored an important concept in Java: Synchronization vs Non-Synchronization in multithreading. 🔹 Synchronization I learned that synchronization is used to control access to shared resources when multiple threads are running. It ensures that only one thread can access a critical section at a time, preventing data inconsistency and race conditions. This makes programs safer and more reliable. 🔹 Non-Synchronization On the other hand, non-synchronized code allows multiple threads to access shared resources simultaneously. While this improves performance, it can lead to unpredictable results if not handled carefully. 💡 Key Takeaway: Choosing between synchronization and non-synchronization depends on the situation—whether we prioritize data safety or performance. 📌 Understanding this balance is crucial for building efficient and thread-safe applications. #Java #Multithreading #Synchronization #LearningJourney #Programming #Day37
To view or add a comment, sign in
-
-
Day – Java Learning Update Today I learned about Multiple Inheritance and Hybrid Inheritance in Java. Multiple Inheritance means one class inherits from more than one class Hybrid Inheritance is a combination of two or more types of inheritance But Java does not support multiple and hybrid inheritance using classes Reason → Diamond Problem When two parent classes have the same method Child class gets confused which method to inherit This creates ambiguity Example flow: A → B A → C B + C → D Now D gets same method from B and C → confusion Solution in Java: Java avoids this problem by not allowing multiple inheritance with classes Instead, Java uses interfaces Interfaces provide multiple inheritance without ambiguity Key takeaway: Java focuses on simplicity and avoids confusion in method resolution #Java #JavaFullstack #OOPS #Inheritance #BackendDeveloper #LearningJourney #Programming 10000 Coders Meghana M
To view or add a comment, sign in
-
🚀 Day 36/45 – Learning Multithreading in Java On Day 36 of my Java learning journey, I explored Multithreading, which allows a program to perform multiple tasks simultaneously. This concept is very important for building responsive and high-performance applications. 📚 What I Learned Today Today I learned: ✔ What a thread is ✔ Creating threads using Thread class ✔ Using Runnable interface ✔ Running multiple threads together ✔ Understanding thread lifecycle 💻 Practice Work To apply my learning, I implemented: • A thread using Thread class • A thread using Runnable interface • Multiple threads running simultaneously • Using sleep() for thread delay 🎯 Key Takeaway Multithreading improves application performance and allows tasks to run in parallel. Learning this concept helped me understand how modern applications handle multiple processes efficiently. This was a very valuable step in advanced Java. #Java #Programming #LearningInPublic #CodingJourney #Multithreading #SoftwareDevelopment
To view or add a comment, sign in
-
🚀 Starting My Java Learning Journey – Day 14 🔹 Topic: Final Keyword & Static Keyword in Java In Java, final and static are important keywords used to control behavior of variables, methods, and classes. ✅ Final Keyword The final keyword is used to restrict modification. ✔ final variable → value cannot be changed ✔ final method → cannot be overridden ✔ final class → cannot be inherited ✅ Static Keyword The static keyword is used for memory management and sharing data. ✔ Belongs to the class, not objects. ✔ Shared among all objects. ✔ Can be accessed without creating an object. 💡 Key Points: ✔ final → restricts changes ✔ static → shared among all objects #Java #JavaLearning #Programming #BackendDevelopment #CodingJourney #JavaFinal #JavaStatic
To view or add a comment, sign in
-
🚀 Java Learning Journey | Day 15 | Core Java Learned about Wrapper Classes in Java. 💡 Key Concept: Wrapper classes convert primitive data types into objects. Example: int → Integer, double → Double ⚙ Why Important? • Required for Collections Framework (ArrayList, HashMap) • Enables autoboxing & unboxing • Useful in object-based operations 📚 Learning: Understanding how Java handles data as objects and why wrapper classes are essential in real-world applications. #JavaDeveloper #Java #CoreJava #OOP #Programming #CodingJourney #LearningInPublic #100DaysOfCode #DevelopersOfLinkedIn #BackendDevelopment
To view or add a comment, sign in
-
Java Learning Journey – Day 29 Today I explored another core OOP concept — Abstraction in Java. 🔹 What is Abstraction? It is the concept of hiding complex implementation details and showing only the essential features. 🔹 How it works? Using abstract classes and abstract methods to define structure without full implementation. 🔹 Key Concepts: • Abstract Class → Can have both abstract & concrete methods • Abstract Method → Declared without implementation 🔹 Why use Abstraction? • Focus on important features • Improve code security • Increase flexibility in design 💡 Key Learning: Abstraction helps in building clean, secure, and scalable applications. Step by step growing in my Java development journey #Java #JavaDeveloper #OOP #Abstraction #Programming #CodingJourney #SoftwareDevelopment #Hariom #HariomKumar #Hariomcse
To view or add a comment, sign in
-
-
🚀 Learning Core Java – Understanding Access Modifiers Today I explored an important concept in Java — Access Modifiers. Access modifiers define the visibility and accessibility of classes, variables, methods, and constructors. They help in achieving encapsulation and data security. In Java, there are four types of access modifiers: ⸻ 🔹 1️⃣ Public ✔ Accessible from anywhere (within the same package and from other packages) ✔ No restrictions on access ⸻ 🔹 2️⃣ Protected ✔ Accessible within the same package ✔ Also accessible in subclasses (child classes) from other packages ⸻ 🔹 3️⃣ Default (Package-Level) ✔ No keyword is used (also called package-private) ✔ Accessible only within the same package ⸻ 🔹 4️⃣ Private ✔ Accessible only within the same class ✔ Cannot be accessed outside the class 💡 Key Insight Access modifiers help in: ✔ Controlling access ✔ Improving security ✔ Maintaining clean architecture Choosing the right access level is crucial for writing secure and maintainable Java applications. Excited to keep strengthening my Java fundamentals! 🚀 #CoreJava #AccessModifiers #JavaProgramming #Encapsulation #ObjectOrientedProgramming #JavaDeveloper #ProgrammingFundamentals #LearningJourney
To view or add a comment, sign in
-
-
Day 39 of learning java Today I learned something very important in Java, Object Creation. Syntax: "className objectName = new constructor();" Here’s what I understood: • The left side ("className objectName") is just declaring a reference variable. • The right side ("new constructor()") is where the actual object is created. • Memory is allocated only when we use the "new" keyword. • The constructor gets executed automatically when the object is created. • Without "new", no memory is allocated and no constructor runs. In short: Declaration != Object creation You need "new" to actually create and use the object. This concept made things much clear about how Java handles memory and execution internally. Thanks to my mentor Ashim Prem Mahto for the clear explanations and for always clearing my doubts. #Java #LearningJourney #Programming #JavaBasics #CodingLife #DeveloperJourney #TechLearning #Beginners #CodeNewbie #jvm #SoftwareEngineer #StudentLife
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