I have a chunk of code in class Aquarium that looks like this:
I know that "new Aquarium()" is used to create a new Aquarium object, but what is the scope of this new object? Why would you want to do this?Code:public static void main(String[] args) { new Aquarium(); }
Thanks.




Reply With Quote