adplus-dvertising
frame-decoration

Question

Using new is type safe as _______________________

a.

It require to be specified with type of data

b.

It doesn’t require to be specified with type of data

c.

It requires the name of data

d.

It allocated memory for the data

Answer: (b).It doesn’t require to be specified with type of data

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Using new is type safe as _______________________

Similar Questions

Discover Related MCQs

Q. Which of the following function can be used for dynamic memory allocation of objects?

Q. Which keyword among the following can be used to declare an array of objects in java?

Q. When is the memory allocated for an object gets free?

Q. Which among the following keyword can be used to free the allocated memory for an object?

Q. Which function is called whenever an object goes out of scope?

Q. Which operator can be used to check the size of an object?

Q. The memory allocated for an object ____________________

Q. If an object is declared in a user defined function __________________

Q. In java, ____________________ takes care of managing memory for objects dynamically.

Q. Which operator can be used to free the memory allocated for an object in C++?

Q. What is array of objects?

Q. Which among the following is a mandatory condition for array of objects?

Q. What is the type of the elements of array of objects?

Q. If array of objects is declared as given below, which is the limitation on objects?

Class_name arrayName[size];

Q. Which is the condition that must be followed if the array of objects is declared without initialization, only with size of array?

Q. When are the array of objects without any initialization useful?

Q. If constructor arguments are passed to objects of array then ____________ if the constructors are overloaded.

Q. How the objects of array can be denoted?

Q. The objects in an object array _______________________

Q. The Object array is created in _____________________