Java + Linux dominated the more full fledged embedded development scene. That is why Android uses it. It has nothing to do with Y2k because people essentially rewrote their applications for each product.
Java is still extraordinarily popular language for enterprise server applications.
That is because it's the only real VM and it is the only significant competitor to .NET.