I am a Java Expert on the finally keyword.
Lemme explain:
finally keyword is pretty much just used for cleanup of resources pretty much, although I use
try with resoure statements because they are easier and just I like them.
finally block is ALWAYS EXECUTED whether or not the try succeeds or other shit happens.
However, if the JVM exits there IS a possiblity that the block will not be executed.
So yeah. I think I deserve the Java Expert group for my knowledge of the "finally" keyword.
If anyone here needs help with the finally keyword, PM me plz thx.
Hope to get accepted
Also, a quick timer i wrote up:
Works really basic and well. Final because I don't need to extend it.
Lemme explain:
finally keyword is pretty much just used for cleanup of resources pretty much, although I use
try with resoure statements because they are easier and just I like them.
finally block is ALWAYS EXECUTED whether or not the try succeeds or other shit happens.
However, if the JVM exits there IS a possiblity that the block will not be executed.
So yeah. I think I deserve the Java Expert group for my knowledge of the "finally" keyword.
If anyone here needs help with the finally keyword, PM me plz thx.
Hope to get accepted
Also, a quick timer i wrote up:
Code:
public final class Timer {
private long time;
public boolean check(int ms) {
return System.currentTimeMillis() - this.time >= ms;
}
public void reset() {
this.time = System.currentTimeMillis();
}
}
Works really basic and well. Final because I don't need to extend it.
[5:46:57 PM] afffsdd: and labels are for break not continue