En java.io.BufferedWriter
il existe une méthode:Quel est le but de java.io.BufferedWriter.min (int a, int b)?
/**
* Our own little min method, to avoid loading java.lang.Math if we've run
* out of file descriptors and we're trying to print a stack trace.
*/
private int min(int a, int b) {
if (a < b) return a;
return b;
}
Quel est le point de cette méthode? Descripteur de fichier supplémentaire requis pour charger java.lang.Math
?
Si je compiler et exécuter le programme vide avec -verbose:class
public class Main {
public static void main(String[] args) {
}
}
Je vais obtenir dans les journaux:
[Loaded java.lang.Math from /opt/jdk/jdk1.8.0_65/jre/lib/rt.jar]
Ha! Probabaly écrit en 1995. – ZhongYu
Je pense que le commentaire est assez descriptif. Quelle est ta question? – Tunaki