Norm Radder wrote:
Both the java programs would be using the same JVM ?
No. I think each execution of the java program would start its own JVM. On Windows you can see separate processes by using the Task Manager.
On Windows there is some magic where the OS will give a running program a chance to open a file within an existing process. For example open a PDF file in Adobe and then try to open a second PDF file, it will be opened in the running program in a new tab.
Campbell Ritchie wrote:You are adding 14 elements to the List; you will get faster execution if you initialise its capacity to 14. Obviously for such small numbers, the time differences will be small.
Stephan van Hulst wrote:What are you going to do if you want to change the application properties programmatically, while running? Surely you're not going to modify the global instance, are you? And how are you going to unit test classes whose behavior depends on application settings?
Application settings are NOT a good example.