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 |
Can private class be inherited in java?
what is object slice?
Is integer a class?
How do you read a char in java?
what is the difference between sleep() and Wait()?
What is static and final keyword in java?
Why java is object oriented?
Write a program to create a binary Tree ?
Can we have try without catch block?
How to provide security in java
0 Answers Infosys, TCS, Tech Mahindra,
Difference between canvas class & graphics class?
How are multiple inheritances done in Java?