Thursday, March 8, 2018

rebus - What famous dialogue does this Java code represent?


The following is a text rebus in the form of Java code:



public class GetBoolean {
public static void main(String[] args) {
boolean i = getBoolean();
}

private static boolean getBoolean() {
throw new BOOLEAN();
}

private static class BOOLEAN extends RuntimeException {

}
}

It represents part of a famous dialogue. What dialogue is that?



Answer




I think it's the famous exchange from A Few Good Men where the protagonist demands about the death of a soldier answers at a military tribunal from the guilty base commander
Kaffee: I want the truth!
Col. Jessup: You can't handle the truth!
after which Colonel Jessup, played by Jack Nicholson, goes on his rant.

The getBoolean method tries to get the truth (Boolean), but is unable to exception-handle it, causing a RuntimeException.




No comments:

Post a Comment

classical mechanics - Moment of a force about a given axis (Torque) - Scalar or vectorial?

I am studying Statics and saw that: The moment of a force about a given axis (or Torque) is defined by the equation: $M_X = (\vec r \times \...