In JSF, what does the immediate attribute mean?
Okay, this gets asked very rarely, but apparently gets answered even more rarely. JSF components can have an 'immediate' attribute, which is a boolean. What 'immediate' does is tell JSF to bypass the validation phase when the request is processed.
I just don't get packages and the classpath!
We hear it about twenty times a day, often (sadly) from the same set of people. Yes, I'm talking about you, _____. The question should take the form of "how does Java use the classpath?" but often looks like "how should I set my classpath" and "how do packages work" and "I'm stupid and my mommy doesn't like me, waaah help with classpath."
Printing a stack trace to a String?
A user on ##java asked "how to printTrackstrace to String," and got an answer of "e.getStackTrace() and concatenate each StackTraceElement." Yeeeick. There not only has to be a better way, but there is a better way.
Is Math.sqrt expensive?
From ##java: "If I was factorising all the numbers up to 1000000, would it be worth checking all primes up to sqrt(n) or would it be quicker to just check all primes up to that number, my tutor told me that the sqrt() function is expensive."