What is Object in java

Object:-  object is a actuall product of class. its take some space in memory .

  • Object have some state and behavior.

  • An object can be defined as an instance of a class

  • An object contains an address and takes up some space in memory

How to creat object of class:-

ClassName objectName = new ClassName();


ex.    phone oneplus = new phone();

          phone iphone= new phone();


Note:- always use camel case system to make class in java


I want to change the world with the help of tech 🙃

Leave a Reply