Day 3 of Java I/O Journey Today I focused on Reading Data in Java using Input Streams. 📥 Learned how Java reads different types of data: 🔹 readByte() → Reads a byte 🔹 readChar() → Reads a character 🔹 readLine() → Reads a full line Understanding these methods helps in handling real-world data from files and user input. Every day, one step closer to mastering Java 💡 What’s your favorite way to handle input in Java? #Java #LearningInPublic #100DaysOfCode #Programming #JavaIO #CodingJourney #Developers #Consistency #Hariom #HariomKumar #Hariomcse
Mastering Java I/O with Input Streams
More Relevant Posts
-
Day 4 of Java I/O Journey Today I explored Writing Data in Java using Output Streams. 📤 Learned how Java writes data to files: 🔹 writeByte() → Writes a byte 🔹 writeChar() → Writes a character 🔹 write() → Writes a string Understanding output streams is essential for storing and managing data in real-world applications. Consistency + small steps = big progress 💡 What do you usually use for writing data in Java? #Java #LearningInPublic #100DaysOfCode #Programming #JavaIO #CodingJourney #Developers #Consistency #Hariom #HariomKumar #Hariomcse
To view or add a comment, sign in
-
-
Day 10 of Java I/O Journey Today I wrapped up core concepts with File Handling in Java 📂 🔹 Basic File Operations • Open → Access the file • Read → Get data from file • Write → Store data in file • Delete → Remove file when needed 🔹 Important Classes • File → Manage file & directory properties • Scanner → Read file content easily • FileInputStream / FileOutputStream → Handle binary data • FileReader / FileWriter → Handle text data 🔹 Key Learnings ✔ Always handle exceptions (IOException) ✔ Close files properly to avoid memory leaks ✔ Check file path & permissions before operations 💡 Now I can confidently read, write, and manage files in Java. From basics to real-world concepts — progress feels real now ⚡ What’s your go-to approach for file handling in Java? #Java #JavaIO #Programming #Coding #SoftwareDevelopment #Developers #LearningInPublic #100DaysOfCode #CodingJourney #JavaDeveloper #BackendDevelopment #TechSkills #Hariom #HariomKumar #Hariomcse
To view or add a comment, sign in
-
-
Day 5 of Java I/O Journey Today I explored Handling Files in Java 📂 🔹 File → Represents files and directories 🔹 FileInputStream → Reads data from files 🔹 FileOutputStream → Writes data to files 🔹 FileWriter → Writes text/characters Understanding file handling is crucial for building real-world applications where data needs to be stored and retrieved efficiently. Learning step by step, growing every day 💡 What’s your go-to way for handling files in Java? #Java #LearningInPublic #100DaysOfCode #Programming #JavaIO #CodingJourney #Developers #Consistency #Hariom #HariomKumar #Hariomcse
To view or add a comment, sign in
-
-
Day 52-What I Learned In a Day (JAVA) Today I learned some fundamental concepts in Java related to objects and methods. 🔹 Creating Objects (for Non-Static Methods) Understood that to access non-static methods, we must create an object of the class. 🔹 Steps to Create an Object 1️⃣ Declare reference variable 2️⃣ Create object using new keyword 3️⃣ Assign it to the reference 🔹 new Keyword Learned that it is used to allocate memory in the heap and create an object. 🔹 Non-Primitive Data Types Explored how objects, arrays, and classes store references instead of actual values. 🔹 Accessing Data from Another Class Learned how to access variables and methods from another class by creating an object of that class and using the reference. These concepts helped me understand how Java objects work, how memory is managed, and how classes interact with each other. #Java #OOP #Programming #LearningJourney #Coding #100DaysOfCode
To view or add a comment, sign in
-
-
Day 7 of Java I/O Journey Today I explored Serialization in Java 🔄 🔹 Serializable → Enables objects to be converted into a byte stream 🔹 ObjectOutputStream → Writes objects to a file/stream 💡 Serialization helps in saving objects and transferring data between systems. From data → object → storage… Java makes it powerful! Consistency is building confidence day by day Have you ever used serialization in your projects? #Java #LearningInPublic #100DaysOfCode #Programming #JavaIO #CodingJourney #Developers #Consistency #Hariom #HariomKumar #Hariomcse
To view or add a comment, sign in
-
-
Abstraction means hiding implementation details and showing only essential features. It focuses on what to do, not how to do. Achieved using abstract classes and interfaces in Java. #Java #OOP #Abstraction
To view or add a comment, sign in
-
-
Day 6 of Java I/O Journey Today I explored Buffered I/O in Java ⚡ 🔹 BufferedInputStream → Reads data efficiently using buffering 🔹 BufferedOutputStream → Writes data efficiently using buffering 💡 Buffering helps reduce the number of I/O operations, making programs faster and more efficient. Small optimization, big impact Consistency is the key to mastering Java! What’s your experience with buffered streams? #Java #LearningInPublic #100DaysOfCode #Programming #JavaIO #CodingJourney #Developers #Consistency #Hariom #HariomKumar #Hariomcse
To view or add a comment, sign in
-
-
🚀 Arrays in Java (Quick Guide) An Array is one of the most important data structures in Java. It stores multiple values of the same data type in a fixed-size container. ✅ Key Features of Arrays Stores elements in contiguous memory Size is fixed once declared Supports index-based access Faster retrieval using index (O(1)) 📌 Example int[] arr = {10, 20, 30, 40}; System.out.println(arr[0]); // Output: 10 🔥 Advantages ✔ Fast access using index ✔ Easy to iterate ✔ Memory efficient for fixed data ⚠ Limitations ❌ Size cannot grow dynamically ❌ Insertion/deletion in middle is costly (O(n)) 💡 When to Use Arrays? 👉 When the size is known in advance 👉 When you need fast indexing 👉 For performance-critical applications Arrays are the foundation for many advanced structures like ArrayList, Heap, Stack, and more. hashtag #Java #Arrays #DSA #Programming #InterviewPreparation
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 41/45 – Java Collections Framework 📦 Today I explored the Java Collections Framework, which provides powerful data structures to handle and manage data efficiently. 📚 What I Learned: ✔ List (ArrayList) for ordered data ✔ Set (HashSet) for unique elements ✔ Map (HashMap) for key-value pairs ✔ Built-in methods for easy data handling 💻 Practice: • Created dynamic lists • Handled duplicate-free sets • Built key-value mapping systems 🎯 Key Takeaway: Collections Framework simplifies data handling and is essential for real-world Java applications. #Java #Collections #Programming #CodingJourney #LearningInPublic #BackendDevelopment
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