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
Java Serialization Explained
More Relevant Posts
-
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 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 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
-
-
Day 12 of Java I/O Journey Today I explored Serialization & Deserialization in Java 🔄 🔹 Serialization • Converts object → byte stream • Used to store or transfer objects • Uses ObjectOutputStream 🔹 Deserialization • Converts byte stream → object • Restores saved data • Uses ObjectInputStream 🔹 Key Concepts • Serializable → Marker interface to allow object serialization • serialVersionUID → Maintains version consistency • transient → Prevents sensitive data from being serialized 🔹 Best Practices ✔ Always define serialVersionUID ✔ Use transient for sensitive fields (like passwords) ✔ Customize with writeObject() and readObject() when needed 💡 This concept is powerful for saving objects and transferring data between systems. From understanding data flow to handling objects efficiently — learning is getting deeper every day ⚡ Have you ever used serialization in a real project? #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
-
-
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 8 of My DSA Journey in Java** Today important concepts that every Java developer should know: 🔹 **Taking User Input in Java** Learned how to use the `Scanner` class to take input from users. Explored different methods like `nextInt()`, `nextFloat()`, `nextBoolean()`, and more to handle various data types. Also understood the importance of closing the scanner using `.close()` to prevent resource leaks. 🔹 **Java Garbage Collector** Understood how memory management works in Java. Objects created using the `new` keyword are stored in the heap memory, and Java automatically removes unused objects using the Garbage Collector. This eliminates the need for manual memory management (unlike C++) and helps avoid memory leaks. 💡 **Key Takeaway:** Java simplifies memory management and provides powerful tools for handling user input efficiently. #Java #DSA #LearningInPublic #Programming #105DaysOfCode #JavaDeveloper
To view or add a comment, sign in
-
### Java Learning ### 👉 11/100 Today, I worked on a Java Multithreading program implementing the Producer-Consumer concept using: ✔️ Threads ✔️ Runnable Interface ✔️ Synchronization ✔️ wait() and notify() methods ✔️ Shared StringBuffer for thread communication 🚀 What the program does: The Producer thread generates data and stores it in a StringBuffer The Consumer thread waits until the Producer completes execution After notification, the Consumer accesses and prints the produced data 💡 Key Concepts Practiced: 🔹 Thread creation using Runnable 🔹 Inter-thread communication in Java 🔹 Use of synchronized block for safe shared resource access 🔹 Coordination between Producer and Consumer threads 🔹 Basics of concurrency handling in Java 📚 What I learned: This project helped me understand how multiple threads can communicate and work together safely using Java’s built-in synchronization mechanisms. Multithreading is one of the most important concepts in Java, especially for building efficient and real-world applications. #Java #Multithreading #ProducerConsumer #ThreadCommunication #Synchronization #CoreJava #JavaProgramming #CodingJourney #JavaDeveloper #LearningByDoing #100DaysOfCode 10000 Coders Raviteja T Mohammed Abdul Rahman
To view or add a comment, sign in
-
Creation of Files Worked on Java File Handling and got hands-on with the File class by implementing core operations instead of just reading theory. 🔹 File Class Operations: • Create → Creating a new file programmatically • Delete → Removing an existing file from the system • Get Information → Extracting details like file name, path, and size This wasn’t just surface-level learning — focused on how Java actually interacts with the file system behind the scenes and how these operations behave in real scenarios. 🔗 GitHub: https://lnkd.in/gSYP3bbf #Java #JavaProgramming #FileHandling #GFG #GFGNationSkillUp
To view or add a comment, sign in
-
-
Day 55-What I Learned In a Day (JAVA) Today, I learned how to create and use constructors in Java. 🔹 A constructor is a special method used to initialize an object when it is created. 🔹 Constructors are non-static by default, meaning they work with objects and help assign values to instance variables. 🔹 They are automatically executed when an object is created, making object initialization simple and efficient. 🔹 This reduces the need for setting values manually after object creation. Understanding constructors helped me see how Java initializes objects in a structured and efficient way. #Java #OOP #Constructors #LearningJourney #Programming #TechSkills
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