Summaries the functions of 'new' Operator in Java?
1) Reserves Memory for the Non-Static members of the .class file in the RAM.
2) Loads all Non-Static members to the Instance.
3) All UN-initialized non-static variables would be Initialized with their Default Values.
4) Loads the Constructor (Defined/Default) to the RAM.
5) From the Constructor,first it Creates object of the Super class(if there is any) and then Procedure Continues with the Super Class Object.
No comments:
Post a Comment