DEV Community

Gayathri.R
Gayathri.R

Posted on

Object in java

An Object is a variable that can hold many variables.

Objects are collections of key-value pairs, where each key (known as property names) has a value.

classname objectvariable=newkeyword classname();
Enter fullscreen mode Exit fullscreen mode

Objects can describe anything like houses, cars, people, animals, or any other subjects.

Top comments (0)