Day 1 of Learning Java : Today I started my journey into Java programming which is taught by Aditya Tandon Sir. Here are the key concepts I learned today: One question is that: If C and C++ were already existing.. why was Java even needed? The answer is :- •C/C++ compile directly into machine code. •It is platform dependent. •Change the processor or OS to Recompile code. But Java? •java Bytecode → JVM Machine Code •Platform Independent. •Same bytecode. •Different JVMs. •Runs everywhere. That's WORA: Write Once, Run Anywhere. •No messy pointer manipulation •Automatic memory management This is just the beginning. Excited to continue this journey Special thanks to Rohit Negi bhaiya & Aditya Tandon Sir. #Java #Coding #Learning #Consistency
Java Programming Basics with Aditya Tandon Sir
More Relevant Posts
-
Day 4 of Learning Java : Today I started my journey into Java programming which is taught by Aditya Tandon Sir. Here are the key concepts I learned today: How Java Stores Negative And Floating Numbers? 1. Storing Negative Integers: Two’s Complement -- >Java doesn't just stick a "minus sign" in front of a number. Instead, it uses a system called Two’s Complement. In a standard 32-bit int, the most significant bit is the sign bit. • 0: Positive •1: Negative ∆ How to calculate Two's Complement: -->To store a negative number (like -5), Java follows these steps: 1.Start with the positive binary: 00000101 (for 5). 2.Invert the bits (One's Complement): 11111010. 3.Add 1: 11111011. 2. Storing Floating-Point Numbers: IEEE For float and double, Java follows the IEEE 754 standard. It stores numbers in a way similar to scientific notation but in binary. ∆ A 32-bit float is broken into three parts: 1.Sign Bit (1 bit): 0 for positive, 1 for negative. 2.Exponent (8 bits): Determines how large or small the number is (the "scale"). 3.Mantissa/Fraction (23 bits): Stores the actual digits of the number. This is just the beginning. Excited to continue this journey Special thanks to Rohit Negi bhaiya & Aditya Tandon Sir. #Day4 #Java #Coding #Learning #Consistency
To view or add a comment, sign in
-
-
Day 12 of Learning Java Today I learned something small in Java that actually plays a big role in programming — Type Casting. At first, I thought it was complicated. But the idea is actually simple. Sometimes in programming, we need to convert one data type into another. For example, converting an `int` into a `double`. That process is called Type Casting. Java mainly has two types of type casting: - Implicit Casting (Widening) This happens automatically when converting a smaller data type into a larger one. Example: `int → double` - Explicit Casting (Narrowing) This is done manually when converting a larger type into a smaller one. Example: `double → int` Simple example: int num = 10; double result = num; // implicit casting double price = 19.99; int rounded = (int) price; // explicit casting What I’m realizing while learning Java is that even small concepts build the foundation of programming logic. Slowly learning. Step by step. #JavaLearning #LearningInPublic #CodingJourney #JavaProgramming #WomenInTech
To view or add a comment, sign in
-
Day 33 of Learning Java Today I learned about Return Types in Java methods, and it finally started to make sense how methods give results back! Here’s what I understood: 🔹 Every method has a return type 🔹 It tells what kind of value the method will give back 🔹 There are mainly two types: Primitive Data Types (PDT) : • byte • short • int • long • char • String • float • double • boolean Reference Data Types (RDT) : • Arrays • Classes • Interfaces • Annotations • Enums 🔹 A method can also return an object 🔹 The "return" keyword is used to send the value back 🔹 If nothing is returned, we use "void" Thanks to my mentor Ashim Prem Mahto for the clear explanations and for always clearing my doubts. #Java #LearningJava #ProgrammingJourney #CodingLife #JavaBasics #SoftwareDevelopment #DeveloperJourney #TechLearning #StudentLife
To view or add a comment, sign in
-
-
#Day28 of learning Java from Aditya Tandon CoderArmy Topic: Generics ➤ Invariance → List<Integer> ≠ List<Number> ➤ Wildcards (?) → make generics flexible Types: • <?> → unknown type • <? extends T> → upper bound (read-only) • <? super T> → lower bound
To view or add a comment, sign in
-
-
Day 5 of Learning Java : Today I started my journey into Java programming which is taught by Aditya Tandon Sir. Here are the key concepts I learned today: Type Conversation In Java:- In Java, "type conversion" is the process of changing a value from one data type to another. 1. Implicit Type Conversation • This happens automatically when we pass a value from a smaller primitive datatype to a larger primitive datatype. Because we are moving to a "bigger container," there is no risk of losing data. ∆ The Hierarchy: byte → short → char → int → long → float → double 2. Explicit Type Conversation • This must be done manually by placing the type in parentheses ( ) in front of the value. This is used when moving from a larger type to a smaller type. • It can loss the data. (e.g., losing decimals or overflowing). ∆ The Hierarchy: double → float → long → int → char → short → byte This is just the beginning. Excited to continue this journey Special thanks to Rohit Negi ne bhaiya & Aditya Tandon Sir. #Day5 #Java #Coding #Learning #Consistency
To view or add a comment, sign in
-
-
Day 3 of Learning Java : Today I started my journey into Java programming which is taught by Aditya Tandon Sir. Here are the key concepts I learned today: Variables And Data Types In Java. Variables: The Containers A variable is a reserved memory location to store values. To create one, you follow this basic formula: type name = value; Value can be changed. Data Types Java splits data types into two main categories: Primitive and Non-Primitive. Primitive Data types Integer:- •byte •short •int •long Floating Point:- •float •double Character:- •char Logical:- •boolean Non-Primitive Data Types:- •Strings •Arrays •Classes & Interfaces This is just the beginning. Excited to continue this journey Special thanks to Rohit Negi bhaiya & Aditya Tandon Sir. #Day3 #Java #Coding #Learning #Consistency
To view or add a comment, sign in
-
-
📘 Day 43 of My Learning Journey Today, I learned about the equals() method from the java.lang package in Java. 🔹 The equals() method is used to compare two objects for equality. 🔹 By default, it checks whether both objects refer to the same memory location. 💡 But the real power comes when we override equals() to compare object values instead of references. 👉 Example: Two objects with the same data (like two students with the same ID) can be treated as equal using equals(). 🔸 This concept is very important when working with collections like lists, sets, and maps. 🚀 Understanding equals() helps in writing accurate comparisons and avoiding logical errors in Java programs. Step by step, improving my Java skills and writing better code! 💻 #Java #LearningJourney #Day43 #OOP #Programming #TechSkills
To view or add a comment, sign in
-
-
🚀 Day 13/45 – Understanding Encapsulation in Java On Day 13 of my Java learning journey, I explored one of the core principles of Object-Oriented Programming — Encapsulation. Encapsulation is all about protecting data and controlling access to it using methods. 📚 What I Learned Today Today I learned: ✔ What encapsulation is and why it is important ✔ How to make variables private for data security ✔ Using getter and setter methods to access data ✔ Real-world analogy of data hiding 💻 Practice Work To apply my learning, I implemented: • A simple program using private variables and getter/setter methods • A bank balance example to demonstrate controlled access 🎯 Key Takeaway Encapsulation helps in building secure and maintainable applications by restricting direct access to data. It is a fundamental concept that improves code quality and structure. Step by step, I am getting closer to understanding core Java concepts. #Java #Programming #LearningInPublic #CodingJourney #SoftwareDevelopment #OOP
To view or add a comment, sign in
-
🚀 Today is Day 103 of Learning DSA with JAVA Today I solved LeetCode 746 – Min Cost Climbing Stairs 💡 👉 Problem Understanding: We need to find the minimum cost to reach the top of the stairs. At each step, we can move either 1 step or 2 steps. 👉 My Approach (Recursion + DP): First, I used recursion and called the function from both starting points: ➡️ recur(0) and recur(1) Then I took the minimum of both results. 👉 Inside Recursive Function: Base Case: If i >= n, return 0 DP Check: If value already exists in dp[i], return it Two Choices:cost[i] + recur(i+1) → move 1 step cost[i] + recur(i+2) → move 2 steps Store the result in dp[i] and return minimum 👉 Optimization: I used memoization (DP array) to avoid recalculating values This helped reduce time complexity to O(N) 💭 What I learned today: How recursion works with multiple choices How DP helps optimize recursive solutions Importance of storing computed results 🔥 Staying consistent and improving every day! #DSA #Java #LeetCode #DynamicProgramming #Recursion #CodingJourney #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 DSA Learning Journey | Day 9 | Java Solved “125. Valid Palindrome.” 💡 Key Idea: Used Two Pointers while ignoring non-alphanumeric characters and comparing characters in a case-insensitive way. ⚙ Implementation • Language: Java • Time Complexity: O(n) • Space Complexity: O(1) 📚 Learning how two-pointer technique simplifies string validation problems. #Java #DSA #LeetCode #ProblemSolving #TwoPointers #JavaDeveloper
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