1.Introduction


Have you ever created an object in Java and wondered what happens behind the scenes the moment that object comes to life?

When you write something as simple as:



Student s1 = new Student();






Java doesn't just magically create an object. It first invokes a special mechanism called a constructor, which prepares the object...