aspose file tools*
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: 42950
    
  70
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Write a program that has only 10 object at any time ?