Day 9 of Java I/O Journey Today I explored the difference between Byte Streams and Character Streams in Java. 🔹 Byte Streams • Work with raw binary data • Used for images, videos, and non-text files • Classes: InputStream, OutputStream, FileInputStream, FileOutputStream 🔹 Character Streams • Work with text data • Handle characters using encoding (UTF-16 internally) • Classes: Reader, Writer, FileReader, FileWriter 💡 Key Insight: Choosing the right stream depends on the type of data you are working with. ✔ Binary data → Use Byte Streams ✔ Text data → Use Character Streams Also practiced basic examples of reading and writing using both types. Step by step, concepts are getting clearer and more practical ⚡ #Java #JavaIO #Programming #Coding #Developer #SoftwareDevelopment #LearningInPublic #100DaysOfCode #CodeNewbie #DevelopersLife #TechLearning #CodingJourney #JavaDeveloper #BackendDevelopment #ComputerScience #Hariom #HariomKumar #Hariomcse
Java Byte vs Character Streams Explained
More Relevant Posts
-
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 27: final Keyword in Java 🔥 Java’s way of saying: “Modify me? Compile error loading…” 😎 In Java, the final keyword is used to apply restrictions on variables, methods, and classes to ensure immutability and controlled usage in object-oriented programming. 👉 Uses of final keyword: » 🔹 final variable → value cannot be changed once assigned » 🔹 final method → cannot be overridden in a subclass » 🔹 final class → cannot be extended or inherited 💡 Conclusion: The final keyword helps in achieving security, consistency, and controlled design in Java applications. #Java #CoreJava #OOP #Programming #Coding #LearnInPublic #100DaysOfCode #SoftwareDevelopment #JavaDeveloper #CodingJourney #final #finalkeyword
To view or add a comment, sign in
-
🚀 Excited to share that I worked on some important Java String Processing Programs under the guidance of G.R Narendra Reddy sir. This session focused on analyzing and manipulating strings using different logic and techniques. It helped me improve my understanding of real-time string handling concepts. 🔹 Key Implementations Covered: ✔️ Vowel & Consonant Identification ✔️ Counting Total Vowels and Consonants ✔️ Counting Capital and Small Letters ✔️ Identifying Alphabets, Digits, and Special Characters ✔️ Replacing Vowels with Special Characters ✔️ Replacing Vowels with Specific Special Characters ✔️ Counting Total Number of Words (Independent Strings) ✔️ Segregating Alphabets and Special Characters into Separate Strings ✨ What I Practiced: ✔️ Character-by-character analysis using loops ✔️ Conditional statements and ASCII handling ✔️ String manipulation and modification techniques ✔️ Writing efficient and clean Java code 💡 Key Learnings: ✔️ Strong foundation in string processing ✔️ Improved logical thinking and problem-solving ✔️ Real-time input validation techniques ✔️ Better understanding of character operations 🎯 Why It Matters: These concepts are widely used in applications like text processing, form validation, password checking, and data filtering systems. 🌱 Small consistent efforts lead to big achievements! G.R NARENDRA REDDY Sir Global Quest Technologies #Java #Programming #Coding #StringManipulation #Vowels #Consonants #CharacterAnalysis #JavaDeveloper #LearningJourney #ProblemSolving #TechSkills #StudentDeveloper
To view or add a comment, sign in
-
🚀 Day 6 of my Java journey — Exception Handling, Threads + DSA Practice! Today I went deep into error handling and multithreading in Java! 🔥 ⚠️ Exception Handling ✅ Exception = unexpected error at runtime (file not found, null pointer, etc.) ✅ throw — manually throw an exception in your code ✅ throws — declare that a method might throw an exception ✅ try-catch-finally — handle exceptions gracefully 🐛 Types of Errors in Java ✅ Compile-time error — syntax mistakes (missing semicolon, wrong type) ✅ Runtime error — happens while running (divide by zero, null pointer) ✅ Logical error — code runs but gives wrong answer (hardest to find!) 🧵 Threads in Java ✅ Thread = a separate path of execution inside your program ✅ Multithreading = running multiple threads at the same time ✅ Extends Thread class OR implements Runnable interface ✅ Used in real applications for performance and speed! 💻 DSA Practice — GeeksForGeeks ✅ Solved: Print array in Pendulum Arrangement ✅ Logic: Sort array → place minimum in center → fill alternately right and left ✅ Input: {1, 3, 2, 5, 4} → Output: {5, 3, 1, 2, 4} Practicing DSA daily alongside Java concepts — because knowing syntax is not enough, problem solving is what gets the perfection ! Day 1 ✅ | Day 2 ✅ | Day 3 ✅ | Day 4 ✅ | Day 5 ✅ | Day 6 .... #Java #JavaDeveloper #ExceptionHandling #Multithreading #DSA #GeeksForGeeks #100DaysOfCode #BackendDevelopment #TechCareer #LearningToCode #ProblemSolving
To view or add a comment, sign in
-
🚀 New YouTube Video is Live! Understanding loops is a key step in mastering Java programming, and in this video, I break it down in a simple and clear way. 🔁 What you’ll learn: • The syntax of different loops in Java • How "for", "while", and "do-while" loops work • When to use each type of loop • Practical examples to help you understand faster Whether you're just starting with Java or want to strengthen your fundamentals, this video is for you. 💡 Clean code, clear explanation, and practical mindset. 🎥 Check it out and let me know your feedback! https://lnkd.in/dw4frPkU #Java #Programming #Coding #SoftwareDevelopment #LearnToCode #JavaBasics #Loops #YouTubeLearning
loops in JAVA
https://www.youtube.com/
To view or add a comment, sign in
-
🚀 Mastering Java: From Fundamentals to Advanced Frameworks ☕ I’ve put together a comprehensive set of handwritten notes covering the essential pillars of Java Programming. Whether you are a student or a developer brushing up on core concepts, these notes provide a structured look into: ✅ Core Java & OOPs: Deep dives into Inheritance, Polymorphism, and Abstraction. ✅ Data Structures: Mastering the Collections Framework (List, Set, Queue, and Map). ✅ Multithreading & Exception Handling: Building robust and concurrent applications. ✅ GUI Development: A detailed comparison and implementation guide for AWT and Swings. Java’s "Write Once, Run Anywhere" philosophy continues to power the tech world. These notes are designed to simplify complex topics like Constructor Chaining, Bytecode execution, and Dynamic Method Dispatch. #Java #Programming #CodingNotes #SoftwareDevelopment #ObjectOrientedProgramming #JavaCollections #TechLearning #HandwrittenNotes
To view or add a comment, sign in
-
🚀 **Day 4 of My DSA Journey in Java** Today, I took my first real step into writing Java programs and understanding how code actually works behind the scenes. 🔹 Learned about **functions/methods** — reusable blocks of code designed to perform specific tasks, along with the concept of input and output. 🔹 Understood the importance of the **main() function** — the entry point where every Java program begins execution. 🔹 Wrote my first **Hello World program** using `System.out.println()` 🎉 🔹 Explored the difference between `print` and `println` for output formatting. 🔹 Learned how to use **comments** (`//` and `/* */`) to make code more readable and maintainable. 🔹 Got introduced to the structure of classical Java syntax like `public static void main`. One key takeaway: not everything needs to be mastered instantly — some concepts are okay to understand at a basic level now and explore deeply later. Slowly building consistency and strengthening my fundamentals 💻✨ #DSA #Java #LearningJourney #Coding #Programming #Beginners #Consistency
To view or add a comment, sign in
-
🔢 Divisible Sum Pairs Problem | Java Solution 💻 Today I solved an interesting problem based on arrays and modular arithmetic! 📌 Problem: Given an array and a number k, count pairs (i, j) such that: 👉 i < j 👉 (arr[i] + arr[j]) % k == 0 ⚡ Approach: Instead of brute force O(n²), I used an optimized O(n) approach using remainder frequency. ✔️ Key Idea: Store frequency of (element % k) For each element, find its complement remainder Count valid pairs efficiently 💡 This improves performance significantly for large inputs! 🧠 Concepts Used: Arrays Modulo Arithmetic Hashing Technique 👨💻 Language: Java #Java #CodingPractice #DataStructures #Algorithms
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 13 of Java I/O Journey Today I learned about Buffering & Performance Optimization in Java ⚡ 🔹 Unbuffered I/O • Processes data byte by byte • Slower due to frequent disk access 🔹 Buffered I/O • Processes data in chunks using a buffer • Faster and more efficient • Reduces disk operations 🔹 Important Classes • BufferedReader → Efficient reading (line by line) • BufferedInputStream → Efficient binary data handling 🔹 Key Learnings ✔ Use buffering to improve performance ✔ Optimize buffer size based on use case (4KB / 8KB common) ✔ Always close streams to free resources 💡 Small optimization like buffering can create a big impact on performance. From writing code → to writing efficient code ⚡ How do you optimize I/O performance 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
-
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