We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93d87c6 commit 71eb158Copy full SHA for 71eb158
chapter09/item66/README.md
@@ -0,0 +1,15 @@
1
+# Item 66: Use native methods judiciously
2
+
3
+## Key Points
4
+- It is rarely advisable to use native methods.
5
+ - Use the [Java process API](https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/Process.html)
6
+ to access OS processes and platform-specific facilities.
7
+ - Native methods:
8
+ - are not *safe*.
9
+ - are less portable.
10
+ - are harder to debug.
11
+ - can *decrease* performance if not used correctly.
12
+ - requires tedious "glue code".
13
+- But correct usage *can* provide improved performance, e.g. using native
14
+ libraries like GMP.
15
0 commit comments