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
Hariom Kumar’s Post
More Relevant Posts
-
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
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 14 of Java I/O Journey Today I explored File Handling Methods in Java 📂 Understanding how Java manages files is essential for building real-world applications. 🔹 Important Methods • File.exists() → Checks whether a file or directory exists • File.createNewFile() → Creates a new file • File.delete() → Deletes a file or directory 🔹 Common Exceptions • FileNotFoundException → When the specified file path is invalid • IOException → General file operation errors • SecurityException → When access permission is denied 🔹 Key Takeaways ✔ Always check if a file exists before operations ✔ Handle exceptions properly to avoid runtime issues ✔ Close streams after file operations ✔ Validate permissions before reading or writing files 💡 File handling is not just about reading and writing — it’s about safely managing resources and preventing errors. Every day I’m moving one step closer to mastering Java fundamentals ⚡ What file handling methods do you use most often 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 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
-
-
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
To view or add a comment, sign in
-
-
In Java, handling dates and times has evolved significantly. While older versions used java.util.Date and java.util.Calendar, modern development uses the java.time package, which is more robust and easier to use. Formatting and Parsing To convert a date object into a readable String (or vice versa), you use the DateTimeFormatter class. ✅ yyyy-MM-dd → 2026-03-31 ✅ dd/MM/yyyy → 31/03/2026 ✅ hh:mm a → 12:50 PM Always use DateTimeFormatter for thread-safe parsing and formatting. Your future self (and your team) will thank you! Special Thanks to Anand Kumar Buddarapu #JavaTips #CleanCode #Programming #Developers #TechCommunity #JavaDeveloper
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
-
Day 11 of Java I/O Journey Today I focused on Exception Handling in Java ⚠️ 🔹 Types of Exceptions • Checked Exceptions → Handled at compile time (e.g., IOException, SQLException) • Unchecked Exceptions → Occur at runtime (e.g., NullPointerException, ArrayIndexOutOfBoundsException) 🔹 Key Keywords • try → Wrap code that may cause an exception • catch → Handle specific exceptions • finally → Executes important code (always runs) 🔹 What I Learned ✔ Use multiple catch blocks for different exceptions ✔ Always log errors for better debugging ✔ Create custom exceptions for cleaner and more meaningful code 💡 Exception handling makes your program more robust and reliable. Learning not just to write code, but to handle errors like a pro ⚡ How do you usually handle exceptions in your projects? #Java #JavaIO #Programming #Coding #SoftwareDevelopment #Developers #LearningInPublic #100DaysOfCode #CodingJourney #JavaDeveloper #BackendDevelopment #TechSkills #Hariom #HariomKumar #Hariomcse
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
-
-
🚀 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