0 votes
in JAVA by
How to create object in java?

1 Answer

0 votes
by

What is an object in java?

Software objects are conceptually similar to real-world objects: they too consist of state and related behaviour. An object stores its state in fields (variables in some programming languages) and exposes its behaviour through methods (functions in some programming languages). Methods operate on an object’s internal state and serve as the primary mechanism for object-to-object communication. Hiding internal state and requiring all interaction to be performed through an object’s methods is known as data encapsulation — a fundamental principle of object-oriented programming.

Related questions

+1 vote
asked Oct 27, 2020 in JAVA by sharadyadav1986
0 votes
asked May 2, 2021 in JAVA by sharadyadav1986
...