Java Programming Journey Begins

HimanshiHimanshi
1 min read

โ˜• What is Java?

Java is a popular, high-level programming language used to build:

  • Desktop apps

  • Mobile apps (especially Android)

  • Web applications

  • Backend systems

  • Games, etc.

๐Ÿ”ง It's known for:

  • Being object-oriented

  • Running on all platforms using the JVM (Java Virtual Machine) โ†’ "Write once, run anywhere"

  • Having strict syntax and strong typing


๐Ÿงฑ What is a Class in Java?

A class is like a blueprint for creating objects (real-world-like things in code).

Think of it like this:

  • A class defines what an object is (its properties) and what it can do (its methods).

  • An object is an actual thing created based on that blueprint.

    ๐Ÿ” Simple Example:

      javaCopyEdit// This is a class
      public class Dog {
          String name;
          int age;
    
          // Method (behavior)
          void bark() {
              System.out.println(name + " says Woof!");
          }
      }
    
0
Subscribe to my newsletter

Read articles from Himanshi directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Himanshi
Himanshi