publicclass Blort
{ publicstaticvoid caught() { // This space intentionally left blank.
}
publicstaticvoid zorch(int x) { // This space intentionally left blank.
}
publicstaticvoid test1(int x) { // In this test, the code being try-caught can't possibly throw. try {
x = 0;
} catch (RuntimeException ex) {
caught();
}
}
publicstaticvoid test2(String[] sa) { // In this test, the code being try-caught doesn't contain any // constant pool references. try { int x = sa.length;
} catch (RuntimeException ex) {
caught();
}
}
publicstaticvoid test3() { // In this test, the code being try-caught contains a constant // pool reference. try {
zorch(1);
} catch (RuntimeException ex) {
caught();
}
}
publicstaticvoid test4(String[] sa) { // In this test, the code being try-caught contains one // throwing instruction that has a constant pool reference and // one that doesn't. try {
zorch(sa.length);
} catch (RuntimeException ex) {
caught();
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.