☕ Learn Java with Me — Day 2 Today we’re learning something very important: Variables & Data Types. In simple terms: Variables help us store data in a program. Let’s look at some examples: → int age = 20; → double price = 99.99; → char grade = 'A'; → String name = "John"; Each data type has its role: → int → whole numbers → double → decimal values → char → single character → String → text As beginners, this is where our coding journey actually starts. We don’t need to rush. Just understand the basics and practice. We’re learning step by step — together 🤝 What topic are you learning today? #java #coding #learning #beginners #ITstudent #showup
Learning Java Variables and Data Types
More Relevant Posts
-
🚀 Day 4 of My Java Learning Journey 💻 Today’s focus was on strengthening logic building with Pattern Programming and exploring the powerful Math class in Java through real-world examples 👇 🔹 🔸 Pattern Programming Practiced different patterns using loops to improve problem-solving skills. Example: * ** *** **** 👉 Helped me understand nested loops and structure thinking 🔹 🔸 Finding the Hypotenuse Applied Math class to solve: c = √(a² + b²) ✔ Used: "Math.sqrt()" and "Math.pow()" 🔹 🔸 Circle & Sphere Calculations - Circle Area = πr² - Sphere Volume = (4/3)πr³ ✔ Used: "Math.PI" for accurate calculations 🔹 🔸 Compound Interest Calculator 💰 Formula: A = P(1 + r/n)^(nt) 👉 Learned how Java can solve real-life financial problems 🔹 🔸 Weight Conversion ⚖️ Converted kg → pounds ✔ Simple but practical application 🔹 🔸 Java Math Class Essentials Explored: - "Math.sqrt()" - "Math.pow()" - "Math.abs()" - "Math.max()" / "Math.min()" - "Math.round()" ✨ Day 4 Insight: Small programs build strong logic. The more I practice, the better I understand how Java solves real-world problems efficiently. 📈 Progress is steady… consistency is key! #Day4 #Java #CodingJourney #100DaysOfCode #Programming #LearningJava #DeveloperJourney
To view or add a comment, sign in
-
Today’s learning sprint 🚀 Dived into some core Java fundamentals that every developer should have crystal clear: 🔹 Data Types Understanding how real-world data is converted into binary and stored. Focused on integer types — byte, short, int, long — and how memory representation works. 🔹 Main Method The entry point of every Java program: public static void main(String[] args) Broke down each keyword and understood why it exists, not just memorizing it. 🔹 Object-Oriented Thinking Shifted perspective to seeing everything as objects: * Objects = State (data) + Behavior (methods) * Learned how Java uses new to create objects * Simple example: Car c1 = new Car(); 💡 Key takeaway: It’s not about memorizing syntax — it’s about understanding how things actually work under the hood. Grateful for the guidance and structured learning 🙌 Special thanks to TAP Academy and Bibek Singh for making these concepts clear and practical. Also grateful to Global Academy Of Technology Slowly building strong foundations, one concept at a time. #Java #Programming #CodingJourney #OOP #ComputerScience #LearningInPublic
To view or add a comment, sign in
-
-
☕ Learn Java with Me — Day 7 7 days ago, we were just thinking about starting. Overthinking. Waiting for the “right time”. Today? We showed up for 7 days straight. No big results. No perfect code. But we learned: → Variables & Data Types → Operators → If-Else → Loops → Methods And today, we tried something practical: 👉 Taking user input in Java Example: import java.util.Scanner; Scanner sc = new Scanner(System.in); System.out.println("Enter your name:"); String name = sc.nextLine(); System.out.println("Hello " + name); This made things feel real. Now it’s not just logic — we can interact with users too. More importantly: → We stopped waiting → We started doing → We stayed consistent From confused → a little more confident. Still beginners. But not at Day 1 anymore. And that matters. Week 2 starts tomorrow 🚀 Comment “STARTED” if you’re learning with me 👇 #java #coding #learning #consistency #ITstudent #showup
To view or add a comment, sign in
-
-
☕ Learn Java with Me — Day 17 After understanding variables and memory, today we’re learning a very useful concept in Java 💻 👉 Type Casting & Type Conversion This is important not just for learning, but also from an interview and coding perspective 🎯 👉 What is Type Conversion? Type conversion means converting one data type into another. Example: int num = 10; double value = num; Here, int is automatically converted into double. This is called: 👉 Implicit Type Casting / Widening Why? Because Java converts a smaller data type into a bigger one automatically. Example: int → double No data loss 🚀 👉 Explicit Type Casting / Narrowing Sometimes we manually convert a bigger type into a smaller type. Example: double price = 99.99; int amount = (int) price; Output: 99 Here, decimal part gets removed. This is called: 👉 Explicit Type Casting Because we are forcing the conversion manually. 📌 Easy trick to remember: Small → Big = automatic Big → Small = manual ❓ Quick Question: What will be the output? double num = 12.8; int x = (int) num; System.out.println(x); We’re learning deeper — together 🤝 #java #coding #learning #interviewprep #showup #day17 #primitivetypecasting
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 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
-
-
🚀 Day 49 of My Learning Journey Today, I explored an important concept in Java — Creating Custom Immutable Classes 🔐 💡 An immutable object is one whose state cannot be changed after it is created. This concept is widely used in Java (like in String) and plays a key role in writing secure and thread-safe applications. 🔍 What I Learned: ✔ How to design my own immutable class ✔ Why immutability improves security and performance ✔ The importance of controlling object modification 🛠 Key Rules to Create Immutable Class: 🔹 Declare the class as final 🔹 Make all variables private and final 🔹 Initialize values through constructor 🔹 Do not provide setter methods 🔹 Return copies of mutable objects (defensive copying) 💻 Simple Example: final class Student { private final int id; private final String name; public Student(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public String getName() { return name; } } 📌 Key Takeaway: Immutability helps in building safe, reliable, and predictable applications — especially in multi-threaded environments. 📈 Learning something new every day and getting one step closer to becoming a better developer! #Java #LearningJourney #Immutability #OOP #Programming #DeveloperGrowth
To view or add a comment, sign in
-
-
☕ Learn Java with Me — Day 10 Today we stepped into one of the most important concepts in Java: 👉 Classes & Objects This is where Java starts feeling like real programming. A class is like a blueprint. An object is the real thing created from that blueprint. For example: class Student { String name; } Student s1 = new Student(); Simple. But very powerful. This is how real applications manage:→ students→ users→ products→accounts Everything in Java starts becoming structured from here. Today’s key learning:→ Class = design / structure→ Object = actual data This is the foundation of OOP. And honestly, it made Java feel much more practical today 💻 We’re learning together 🤝 #java #coding #oop #learning #showup
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
-
📌 Another step in my learning journey 🚀 Today I explored the basic structure of Java programs and created this simple presentation to understand it better. 🔹 Concepts covered: • Classes & Objects • Main Method • Packages & Imports • Variables & Data Types Still learning and improving every day 💻✨ #Java #Programming #Learning #StudentLife #CodingJourney #LinkedInLearning
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