publicstaticvoid main(String[] args) {
System.loadLibrary(args[0]);
System.out.println("init signal test");
initSignalTest(); try {
Object o = null; int hash = o.hashCode();
// Should never get here.
System.out.println("hash: " + hash); thrownew AssertionError();
} catch (NullPointerException e) {
System.out.println("Caught NullPointerException");
} try {
stackOverflow(); // Should never get here. thrownew AssertionError();
} catch (StackOverflowError e) {
System.out.println("Caught StackOverflowError");
}
// Test that a signal in native code works. This will return // the value 1234 if the signal is caught. int x = testSignal(); if (x != 1234) { thrownew AssertionError();
}
terminateSignalTest();
System.out.println("Signal test OK");
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-06-29)
¤
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.