What happens when we create a class in Java?

All objects in Java programs are created on heap memory. An object is created based on its class. You can consider a class as a blueprint, template, or a description how to create an object. When an object is created, memory is allocated to hold the object properties .

Sizin İçin Seçtik  What is public and private method in Java?

Leave a Reply

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