Bug with the delete keyword :-
It deletes the elements value but never deletes the memory occupied that's why length is the same
It deletes the elements value but never deletes the memory occupied that's why length is the same
If the index is not available we will get -1 as an index (written interview question )
Forwarded from Java Hyd Team
Which topic you want to learn from scratch
Anonymous Poll
56%
Array
49%
Collection
44%
Multi threading
42%
Exception handling
40%
Strings
28%
Interfaces n abstract methods
40%
Java 8