What must be done after a TypedArray is no longer needed?

Question:What must be done after a TypedArray is no longer needed?

1.The invalidate() method must be called in order to refresh the contents of the object.

2.The recycle() method must be manually called in order to notify the system that the object is no longer using the memory allocated to it.

3.The onDestroy() method must be manually called in order to notify the system that the object is no longer using the memory allocated to it.

4.The keepalive() method must be called in order to notify the system that the object is still being used and to prevent GC from clearing it.


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!