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
Learning Java with Aditya Tandon Sir: Variables & Data Types
More Relevant Posts
-
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 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
-
-
🚀 Day 3 of My Java Journey – Learning Data Types Continuing my Java learning journey, today I explored another fundamental concept: Data Types 🎯 Data types define the type of data a variable can store, which helps in efficient memory usage and better program structure. Understanding this concept is crucial for writing clean and optimized code. 💡 Key Learnings: • Difference between Primitive and Non-Primitive data types • Primitive types: int, float, char, boolean, etc. • Non-Primitive types: String, Arrays, etc. • Importance of choosing the correct data type 🧠 Example: int age = 20; float price = 99.99f; char grade = 'A'; boolean isJavaFun = true; Staying consistent and building strong fundamentals step by step 💯 📌 Next Step: Operators in Java #Day3 #Java #CodingJourney #Programming #Learning #DeveloperJourney #100DaysOfCode
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 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 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
-
-
Continuing my Java learning journey, I’ve recently explored Streams in Java, which bring a modern and functional approach to data processing. Here are the key concepts I covered: Introduction to Streams and how they enable declarative data processing Creating streams from collections, arrays, and other sources Intermediate operations like filter(), map(), and sorted() Terminal operations such as forEach(), collect(), reduce(), and count() Understanding lazy evaluation and pipeline processing Using streams for cleaner, more concise, and efficient code Working with streams has helped me write more readable and expressive code while handling complex data transformations with ease. Step by step, building towards writing optimized and modern Java applications. #Java #Streams #FunctionalProgramming #Programming #LearningJourney #SoftwareDevelopment #CDAC
To view or add a comment, sign in
-
-
Day 3 of learning Java 🚀 Today I learned about variables and data types. Understanding how data is stored in programs is really important. Built a simple "Student Info" program using different data types. Still learning step by step 👍 Git-->https://lnkd.in/ghdwWYvC #Java #CodingJourney #LearningInPublic #Beginner
To view or add a comment, sign in
-
-
Learning Encapsulation in Java Today I practiced one of the core concepts of OOPs — Encapsulation. Encapsulation means wrapping data (variables) and code (methods) together in a single unit (class), and controlling access using getters and setters. I created a simple Student class with: id name course Instead of accessing variables directly, I used: - private variables - public getter and setter method What I learned: - Data hiding improves security - Code becomes more controlled and maintainable - Direct access to variables should be avoided Small steps every day towards becoming a better developer #Java #OOP #Encapsulation #CodingJourney #BeginnerDeveloper
To view or add a comment, sign in
-
-
#Day 1 of revising Java. Today I focused on refreshing the fundamentals: • Data types • Taking input using Scanner • Object creation • Loops (for / enhanced for) • Conditional statements Going back to the basics is helping me strengthen my programming foundation before diving deeper into problem solving and data structures. The goal for the next few weeks is simple: practice consistently, improve logic, and become more comfortable writing clean Java code. Small progress every day. #Java #Programming #LearningInPublic #CodingJourney #JavaBasics
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