Is JDK “upward” or “backward” compatible?

Note that for something to be backwards compatible there must be a counterpart that is forwards compatible (either intentionally or unintentionally). For example: are the DVD readers backwards compatible with CD’s or are the CD’s forward compatible with DVD readers? In this case, it depends if you look at the compiler (or the bytecode it … Read more

Do Java 8 default methods break source compatibility?

Doesn’t JDK 1.8 introduce a forward incompatibility for Java source code due to default methods? Any new method in a superclass or interface can break compatibility. Default methods make it less likely that a change in an interface will break compatibility. In the sense that default methods open the door to adding methods to interfaces, … Read more

How to detect IE11?

IE11 no longer reports as MSIE, according to this list of changes it’s intentional to avoid mis-detection. What you can do if you really want to know it’s IE is to detect the Trident/ string in the user agent if navigator.appName returns Netscape, something like (the untested); function getInternetExplorerVersion() { var rv = -1; if … Read more