wood burning stoves 2.0*
The moose likes Programming Diversions and the fly likes Write a program that has only 10 object at any time ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Write a program that has only 10 object at any time ?" Watch "Write a program that has only 10 object at any time ?" New topic
Author

Write a program that has only 10 object at any time ?

ManojKumar Kumar
Greenhorn

Joined: Feb 14, 2012
Posts: 2

Q- Create a program that has only 10 object at any time ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41525
    
  53
That's an entirely meaningless question. A JVM that starts up will have allocated thousands of objects before ever executing your code. And if your code allocates just one class library object, that most likely allocates more objects in turn. In other words: you won't know how many objects your code causes to be allocated.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Write a program that has only 10 object at any time ?