What is initialization object in Java?

Object Initialization in Java The process of assigning value of the variable is called initialization of state of an object. In other words, Initialization is the process of storing data into an object. In the below example, we have initialized variables name and city with “PIET” and “Nagpur” respectively.

Sizin İçin Seçtik  How do we initialize an object?

Leave a Reply

Your email address will not be published. Required fields are marked *