Fixes.
--- a/java.rst Sat Jan 18 21:58:46 2020 +0200
+++ b/java.rst Mon Jan 20 17:42:41 2020 +0200
@@ -9,7 +9,6 @@
Class version.
==============
-
========= ====== =====================
major minor Java platform version
========= ====== =====================
@@ -31,31 +30,25 @@
Access modifiers.
=================
-Public.
--------
+``public``:
* Public class is visible in other packages.
* Public field is visible everywhere (class must be public too).
-Private.
---------
+``private``:
* Private variables or methods may be used only by an instance of the same
class that declares the variable or method
* A private feature may only be accessed by the class that owns the feature.
-Protected.
-----------
+``protected``:
* Is available to all classes in the same package and also available to all
subclasses of the class that owns the protected feature.
* This access is provided even to subclasses that reside in a different
package from the class that owns the protected feature.
-default.
---------
-
-What you get by default ie, without any access modifier.
+Default (ie, without any access modifier):
* It means that it is visible to all within a particular package.
@@ -233,11 +226,12 @@
Save dump to file::
- $ jmap -dump:format=b,file=heap.dump $PID
+ $ jmap -dump:format=b,file=heap.hprof $PID
+ $ sudo -u $USR jcmd $PID GC.heap_dump heap.hprof
With ``live`` option only reachable objects are dumped::
- $ jmap -dump:live,format=b,file=heap.dump $PID
+ $ jmap -dump:live,format=b,file=heap.hprof $PID
Creating heap dump on OutOfMemory error
=======================================