How do Java applications close on Mac OS X?

I am writing a Java program to run on Mac OS X. However, one thing that has confused me is that I have seen some people say that if the user leaves the application from the menu bar, the application does not close properly - it will not cleaned up correctly and I have to implement a separate closure method for it. However, I also read that there were some big changes for Java for Mac in 2010. When I look at the Apple Docs , it seems that the default close action now calls SYSTEM_EXIT_0. Does this mean it is calling System.exit (0)? Is this a solution to the cleaning problem? I am a little confused about all the API changes and all the omissions that happened when Apple stopped controlling Java for Mac.

Thank!

+3
java api memory-leaks macos


source to share


No one has answered this question yet

Check out similar questions:

6170
Is Java "pass-by-reference" or "pass-by-value"?
3799
How do I read / convert an InputStream to a string in Java?
3324
How to generate random integers in a specific range in Java?
3073
How to efficiently iterate over each entry in a Java map?
3044
Making a memory leak with Java
2956
What is the difference between public, secure, batch and private in Java?
2936
When to use LinkedList over ArrayList in Java?
2853
How can I convert String to int in Java?
2171
How to determine if an array contains a specific value in Java?
1541
Find (and kill) port 3000 blocking process on Mac



All Articles
Loading...
X
Show
Funny
Dev
Pics