A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Java - Objects and Classes

What is Java Objects and Classes?

What is Java - Objects and Classes?

Java is an Object Oriented Language. As a language that has the Object Oriented feature Java supports the following fundamental concepts:

  1. Polymorphism Inheritance

  2. Encapsulation Abstraction

  3. Classes Objects Instance Method

  4. Message Parsing

In this chapter, we will look into the concepts Classes and Objects.
Object - Objects have states and behaviors. Example: A dog has states-color, name, breed as well as
behaviors -wagging, barking, eating. An object is an instance of a class.
Class - A class can be defined as a template/ blue print that describe the behaviors/states that object of its type support.