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
Why scanner is used in java?
What is the purpose of final keyword and when to use it?
What is the largest number a double can hold?
Can an interface implement another interface?
What is java autoboxing?
Explain inner classes ?
Is java still relevant?
Can we have more than one package statement in the source file?
Explain when we should make an instance variable private.
What is null in java?
What exactly is java?
What is the similarity between dynamic binding and linking?
Write a function for palindrome and factorial and explain?
What is regex in java?
What is java thread dump, how can we get java thread dump of a program?