Introduction & Syntax

Java Class and Objects

Programming & Coding Study Mode

Java Class and Objects

💻 Start your coding journey with fundamental concepts, syntax mastery, and programming paradigms. From basics to advanced, learn to think like a programmer.

0 Exercises
0 Minutes
0% Completed
?

Introduction & Syntax

Study Material

Java Class and Objects


Java is an object-oriented programming (OOP) language. It allows you to divide complex problems into smaller sets by creating objects.

These objects share two characteristics: 

  • state
  • behavior

Let's take few examples:

  1. Laptop is an object
    • It can be in on or off state.
    • You can turn on and turn off lamp (behavior).
  2. Bicycle is an object
    • It has current gear, two wheels, number of gear etc. states.
    • It has brakingaccelerating, changing gears etc. behavior.

Recommended reading: What is an object?


0% read