What is the difference between delete and delete[]
Answer Posted / 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 |
Post New Answer View All Answers
How to restrict a member of a class from inheriting by its sub classes?
How do you use compareto?
What are java packages? What is the significance of packages?
What is meant by object?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is the difference between yielding and sleeping in java programming?
Can a constructor call another constructor?
What is set in java?
What is a default constraint?
Explain tree set and its features?
What about method local inner classes or local inner classes in java?
What is used of static keyword in java?
Explain about procedural programming language or structured programming language and its features?
What is the difference between call by reference and call by pointer?
What types of index data structures can you have in java?