Day-3 📗 Java Learning Journey Understanding I explored narrowing (explicit type casting) — converting a larger data type into a smaller one. 👉 This process is not automatic and requires manual casting because it can lead to data loss. 🔹 What I learned: • Explicit casting is required ( ) • Decimal values get truncated • Overflow can occur when value exceeds range. #Java #Programming #LearningJourney #Coding #Developers #JavaBasics #ManualTesting #SoftwareTesting
Java Explicit Type Casting Basics
More Relevant Posts
-
Today I explored one of the most essential data structures in Java — ArrayList. From understanding dynamic resizing to mastering common methods like add(), get(), and remove(), it’s amazing how flexible and powerful it is compared to traditional arrays. 💡 Key takeaways: ✔ Dynamic size makes it super flexible ✔ Easy data manipulation with built-in methods ✔ Cleaner iteration using for-each loops Grateful for the continuous learning journey and excited to apply this in real projects! 💻 #Java #Programming #CodingJourney #ArrayList #SoftwareDevelopment #LearningEveryday TAP Academy @Bibek singh
To view or add a comment, sign in
-
-
Solved the "Add Digits" Problem using Java Today, I worked on an interesting problem where the task is to repeatedly add all digits of a number until we get a single digit. Example: Input: 38 3 + 8 = 11 1 + 1 = 2 Approaches I explored: Iterative Approach (Loop) – Keep summing digits until a single digit is obtained Optimized Approach (Digital Root) – Achieves O(1) time complexity Key Learning: Understanding patterns in numbers can help us move from a basic solution to a highly optimized one. The Digital Root concept was a great takeaway! Language Used: Java Excited to keep improving my problem-solving skills and exploring efficient solutions! #Java #DSA #Coding #ProblemSolving #Programming #LearningJourney #Developers #Tech #InterviewPrep
To view or add a comment, sign in
-
-
🚀 Day 2 of My Java Learning Journey Today’s focus: Operators & Input/Output — the building blocks of logic and interaction. From performing calculations ➕➖✖️➗ to handling real-time user input ⌨️ and displaying output 🖥️, I’m starting to see how programs actually think and respond. 💡 Key takeaways: • Understanding how different operators shape decision-making • Learning how input/output connects users with code • Writing small programs that feel more “alive” Every line of code is getting me one step closer to becoming a better developer. Consistency > Motivation. Showing up every day. 🔁 #Java #LearningInPublic #100DaysOfCode #Programming #CodingJourney #Developers #TechSkills #JavaBasics #StudentDeveloper #BuildInPublic
To view or add a comment, sign in
-
-
🚀 Want to understand how ArrayList really works in Java? In this short video, I break down the basics of the List interface and show how ArrayList handles: ✅ adding elements ✅ resizing when full ✅ inserting at a specific index ✅ removing elements ✅ fast access with get(i) A simple visual explanation of one of the most used data structures in Java. Perfect for beginners, students, and anyone sharpening their DSA fundamentals. 💡☕ #Java #ArrayList #DataStructures #Algorithms #Programming #SoftwareDevelopment #Coding #JavaDeveloper #LearnToCode #ComputerScience #DSA #BackendDevelopment #Developers #TechEducation #CodeNewbie
Java ArrayList Explained in 45 Seconds
To view or add a comment, sign in
-
I struggled a lot to understand Polymorphism in Java at first… until I simplified it like this 👇 👉 Polymorphism means “one thing, many forms” In Java, it mainly happens in 2 ways: 1️⃣ Method Overloading (Compile-time Polymorphism) Same method name, different parameters Example: add(int a, int b) add(int a, int b, int c) 2️⃣ Method Overriding (Runtime Polymorphism) Subclass provides its own implementation of a method Example: A Vehicle class has a method start() A Car class overrides it with its own logic 🚗 💡 Why is this powerful? Makes code flexible Improves reusability Helps write cleaner programs 📌 Simple way to remember: Overloading = Same method, different inputs Overriding = Same method, different behavior I wish I had learned it this way earlier—it would have saved me hours! If you're learning Java, keep going 💻 Consistency beats complexity. #Java #Programming #Coding #OOP #Learning #Developers
To view or add a comment, sign in
-
-
🚀 Day 30 of My Java Learning Journey 📌 Topic: 3D Array in Java 🔹 Definition: A 3D array in Java is a collection of data arranged in three dimensions (layers, rows, and columns). It is like a cube of elements where each value is accessed using three indices. 🔹 Syntax: int[][][] arr = new int[2][3][4]; 🔹 Key Points: ✅ Stores data in multiple layers ✅ Useful for complex data representation ✅ Access elements using arr[i][j][k] 🔹 Example: System.out.println(arr[1][2][3]); 💡 Output: 20 📈 Learning never stops! Every day I’m getting better at Java and problem-solving. Aman Soni Vidhya Code Gurukul #Java #Programming #CodingJourney #LearningInPublic #Developers #100DaysOfCode #Tech 🚀
To view or add a comment, sign in
-
-
💻 Built a Diamond Pattern in Java using pure logic and nested loops. While practicing DSA fundamentals, I implemented this pattern by understanding how spaces and stars align in each row. This helped me strengthen my control over loops, conditions, and pattern-based problem solving. 📌 Key Learning: Breaking a complex pattern into smaller logical steps makes it much easier to implement. Consistency in solving such problems is what builds strong programming logic. #Java #DSA #Programming #CodingJourney #ProblemSolving #LogicBuilding #Developers #Learning #100DaysOfCode
To view or add a comment, sign in
-
-
Java Memory Explained Simply 👇 Heap → Objects stored Stack → Method calls & variables 💡 Important: Stack is fast Heap is bigger but slower Memory understanding = better debugging 🚀 👉 Follow for Java basics #java #javadeveloper #memory #coding #developers #programming #tech #learning #interviewprep #trending
To view or add a comment, sign in
-
🚀 Day 7 of My Java Learning Journey – Advance Arrays Today, I explored advanced concepts of arrays in Java, moving beyond basics into more structured and flexible data handling. Here’s what I learned 👇 🔹 Working with 2D Arrays (Matrix) → Understanding rows & columns using nested loops 🔹 Exploring Jagged Arrays → Handling arrays with different column sizes 🔹 Passing arrays to methods → Learning how arrays behave when passed as arguments 🔹 Returning arrays from methods → Building reusable and modular code 💡 This practice helped me realize how arrays can represent complex data structures and how methods make code more organized and reusable. 📌 Key Learning: Mastering arrays is essential because they are the building blocks for advanced topics like data structures and algorithms. 💻 Small steps every day = Big progress over time! #Java #Programming #CodingJourney #Arrays #2DArray #JaggedArray #100DaysOfCode #Learning #JavaDeveloper
To view or add a comment, sign in
-
Mastering Java – One Concept at a Time Lately, I’ve been strengthening my foundation in Java, and here are some key insights from my learning journey: - OOP Concepts – Encapsulation, Inheritance, Polymorphism, Abstraction = Strong code design - Data Types & Operators – Building blocks of every Java program - Control Statements & Loops – Writing logical and efficient programs - Collections Framework – Powerful tools to manage and organize data - Exception Handling – Writing robust and error-free applications - Multithreading – Unlocking the power of concurrent execution Key Realization: Java is not just a language—it’s a mindset for building scalable, maintainable, and secure applications. Consistency in learning + practice = Confidence in coding #Java #Programming #CodingJourney #SoftwareDevelopment #TechLearning #OOP #Developers
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