What is the difference between delete and delete[]
Answer Posted / hr@tgksolutions.com
• delete: Frees memory allocated for a single object.
• delete[]: Frees memory allocated for an array of objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a dynamic array in java?
what do you mean by java annotations?
What are the Static and Dynamic Variables? Differentiate them.
What is dynamic binding(late binding)?
Which methods cannot be overridden in java?
How to make a class or a bean serializable?
What is regex used for?
Write the algorithm to check the number non-leaf nodes in a tree.
What are the differences between string and stringbuffer?
Is there is any difference between a scrollbar and a scrollpane?
What is object of class in java?
When throw keyword is used?
Is set sorted in java?
Can constructor return value?
Explain the difference between abstract class and interface in java?