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
Learning Java Variables and Data Types
More Relevant Posts
-
🚀 Day 2 of. My Java Journey – Learning Variables Today, I started learning Java programming and covered one of the most fundamental concepts: Variables 🎯 Variables are used to store data in a program, such as numbers, text, and more. Understanding how to declare and use variables is the first step toward building strong programming logic. 💡 Key Learnings: • Variables act as containers to store data • Each variable has a specific data type (int, float, String, etc.) • Learned about declaration and initialization • Understood basic naming conventions for variables 🧠 Example: int age = 20; String name = "ABC"; Consistency is key to success, and I’m excited to learn more step by step 🚀 📌 Next Step: Data Types & Operators #Java #CodingJourney #Programming #Learning #DeveloperJourney #100DaysOfCode
To view or add a comment, sign in
-
🚀 Day 34 of Learning Java — File Handling! 📂 Today I explored File Handling in Java, and it was such a great learning experience! Here's what I practiced: ✅ How to check if a file exists using the File class ✅ How to create a new file using createNewFile() ✅ How to write data to a file using FileOutputStream in append mode (true flag keeps existing data safe!) ✅ How to convert a String to bytes using getBytes() and write it to a file 🔍 Key Concept from Today's Code: My program first checks if a file exists at a given location. If it does, it directly appends new data to it. If not, it creates the file first and then writes the data — making it smart and reusable! 💡 One thing I learned: Using FileOutputStream(location, true) appends data instead of overwriting it. Such a small detail but so important! A big thank you to my mentor Raviteja T for the amazing guidance and support throughout this journey! 🙏 #Java #JavaProgramming #FileHandling #Day34 #LearningJava #CodingJourney #JavaDeveloper #Programming #CodeNewbie #TechLearning #JavaBeginners
To view or add a comment, sign in
-
🚀 Mastering Java Basics Understanding the fundamentals is the first step to becoming a strong programmer. This visual highlights key Java concepts every beginner should know: 🔹 Data Types – Learn about integer, floating-point, character, and boolean types along with their sizes and ranges. 🔹 Type Casting – Understand implicit and explicit conversions between data types. 🔹 Character & Boolean – Explore ASCII vs Unicode and how Java handles characters and logical values. 🔹 Increment & Decrement Operators – Know the difference between pre and post operations. 💡 Building a solid foundation in these basics makes advanced Java concepts much easier to grasp. #Java #Programming #Coding #JavaBasics #LearningJourney #Developer #TechSkills #tapacademy
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 1 of My Java Journey Started learning Java from scratch. ✔ Variables ✔ Data Types (int, float, char) One thing I realized: Programming is not about memorizing syntax, it's about understanding how data works. Simple example: int age = 20; → storing real-world data in code This is just the beginning 🔥 What was your first programming language? #Java #CodingJourney #Learning #Day1
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 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 48 of My Java Learning Journey Today, I explored one of the most important concepts in Java – Collection Framework 💡 📌 What I Learned: Collection Framework is a set of classes and interfaces used to store and manipulate data efficiently It was introduced in JDK 1.2 by Josh Bloch Acts as an alternative to Data Structures in Java 📊 Key Components: Interfaces → List, Set, Queue, Map Classes → ArrayList, LinkedList, HashSet, HashMap 🔥 Why Collections? ✔ Dynamic size (no fixed length like arrays) ✔ Inbuilt methods (add, remove, etc.) ✔ Efficient data handling ✔ Reduces coding effort 💻 Key Features: Allows heterogeneous data Maintains insertion order (List) Allows duplicates (List) Improves performance in real-world applications 📈 Takeaway: Collection Framework is a must-know concept for interviews and real-time development. Almost every Java application uses it! #Day48 #Java #CollectionsFramework #JavaDeveloper #LearningJourney #Coding #Programming
To view or add a comment, sign in
-
-
🚀 Starting My Java Learning Journey – Day 16 🔹 Topic: Encapsulation in Java. Encapsulation is one of the core OOP concepts. It is the process of wrapping data (variables) and code (methods) into a single unit (class). It also helps in data hiding. 📌 How to Achieve Encapsulation? ✔ Declare variables as private. ✔ Provide public getter and setter methods to access and update values. 📌 Example Program class Student { private String name; // Getter method public String getName() { return name; } // Setter method public void setName(String name) { this.name = name; } } public class Main { public static void main(String[] args) { Student s1 = new Student(); s1.setName("John"); System.out.println(s1.getName()); } } Output: John 💡 Key Points: ✔ Protects data from unauthorized access. ✔ Improves security and flexibility. ✔ Achieved using private variables + getters/setters. #Java#JavaLearning #Programming #BackendDevelopment #CodingJourney #Encapsulation #OOP#
To view or add a comment, sign in
-
🚀 Day 2 of My Java Learning Journey – Operators in Java Today, I explored one of the most important concepts in Java – Operators. These are the building blocks that help us perform operations on variables and values. 🔹 Types of Operators in Java: ➤ 1. Arithmetic Operators Used for basic mathematical operations "+ - * / %" ➤ 2. Relational Operators Used to compare two values "== != > < >= <=" ➤ 3. Logical Operators Used to combine conditions "&& || !" ➤ 4. Assignment Operators Used to assign values "= += -= *= /=" ➤ 5. Unary Operators Used with a single operand "++ -- + - !" 💡 Key Learning: Operators are essential for writing logic in programs. Without them, decision-making and calculations would not be possible. 📌 Practiced writing simple programs using different operators and understood how they work behind the scenes. #Java #Programming #CodingJourney #LearningJava #BCA #Developers #100DaysOfCode
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