What is the difference between delete and delete[]
Answer Posted / glibwaresoftsolutions
• 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
How can u increase the heap size in the memory?
What are the different access modifiers available in java?
Which class is the superclass for all the classes?
What is the list interface in java programming?
What is the difference between method and means?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is the purpose of declaring a variable as final?
Differentiate jar and war files?
How objects are stored in java?
What is the char data type?
Which package is always imported by default?
Why is the singleton pattern considered to be an anti pattern?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
How many bytes is a unicode character?
How to make a write-only class in java?