Ans:
i. The new operator instantiates a class by allocating memory for a new object
ii. The new operator also invokes the constructor.
iii. The new operator requires a single, postfix argument: a call to a constructor.
iv. The name of the constructor provides the name of the class to instantiate.
v. The new operator returns a reference to the object it created.
vi. This reference is usually assigned to a variable of the appropriate type.
If you could click on some of the google ads you see on the right side. It will help me to run this blog and motivates me ;)
If you could click on some of the google ads you see on the right side. It will help me to run this blog and motivates me ;)
The new operator returns the heap memory address of the allocated instance
ReplyDeleteJava Training
I have read your blog its very attractive and impressive. I like it your blog.
ReplyDeleteJava Training in Chennai Java Training in Chennai | Core Java Training in Chennai | Java Training Institutes
Online Java Training Java Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai