What is the difference between delete and delete[]
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• 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 |
Answer / 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 |
• 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 |
What is the difference between member variables initialization and assignment in a constructor?
Explain about map interface in java?
What do heavy weight components mean in java programming?
What state is a thread in when it is executing?
What class is used to implement a Throwable array?
what is difference between Action messages and Action errors?
Why null value is used in string?
What environment variables are required to be set on a machine in order to run Java programs?
What does file separator do in java?
What is difference between equal and == in java?
What is mnemonic code?
How do you read and print a string in java?