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 are static initalizers in java ?
What is a protected method?
What is the benefit of abstract class?
What does arrays sort do in java?
Is integer passed by reference in java?
How many bytes is a string java?
What is java and why do we need it? Explain
Difference between interface and abstract class with ex.
4 Answers Cognizant, Tech Mahindra,
Can sleep() method causes another thread to sleep?
What is are packages?
How do you use find and replace?
Can constructor be synchronized?