Using Objects
This lesson discusses the caveats of working with Java objects.
We'll cover the following...
We'll cover the following...
Notes on Using Objects
- Set object references to null in classes that manager their own memory to avoid memory leaks. Consider the class below: - public class LeakyStack { private Object[] elements;