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
What is final keyword in java? Give an example.
Explain the scope of a variable.
How are variables stored in memory?
What is meant by distributed application? Why are we using that in our application?
What is the access scope of protected access specifier?
What are voids?
What are encapsulation, inheritance and polymorphism?
How can you make a class serializable in java?
What is meant by class loader? How many types are there? When will we use them?
What is a static method in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
When object is created and destroyed?
What types of index data structures can you have in java?
Can we create an object of static class in java?
What is a website container?