JavaServer Faces
I went to a brown bag lunch today to hear about JavaServer Faces, a UI framework for web apps. Apparently, the brown bag was inspired by a talk at JavaOne given by Craig McClanahan. Craig is a contributor to Struts who now works for Sun as the lead for JSR-127, JavaServer Faces. JSF is interesting, but from the short presentation I couldn’t grok how it was an improvement over Stuts and struts-html tags. You wonder if Sun is just trying to embrace and extend a successful open-source project, make their spec a “standard”, and place their reference under their stinky SCSL terms. (JDO versus OJB, NetBeans versus Eclipse, hm …)
At the end of the talk, the presenter posed a programming problem for us to ponder. In the following Java program, what could make it print out “not equal”?
if (x == x) {
System.out.println("equal");
}
else {
System.out.println("not equal");
}
It took me back to my certification days.
August 3rd, 2004 at 8:47 am
Where Eric fell painfully short at his client in answering this question, I arose to the occasion (hee hee!). A big (and somewhat obvious) hint: it’s a value that the JVM will interpret in a unique way.