But why did Google choose Java anyway? Well, there weren’t that many popular choices that were also in good standing with developers. In Additionally, Google had quite a lot of developers that were using Java because they need it for their own infrastructure. Since it was also open source, they decided to fork the Java Virtual Machine, and create the Dalvik VM. This is not exactly unheard of in the world of open source software, and in fact, it’s not even the first time this happened to Oracle since they bought Sun.
For example, the people who made OpenOffice got angry with Oracle’s greed, and forked it into LibreOffice. Usually, this is perfectly normal behavior in the open source world. It’s not like that would stop Oracle from suing Google anyway, which is why Google may take issue with Java right now.
Moving forward, Google is already considering alternatives for Java, such as their own language Go v1.0, which they just finished recently. From what developers are saying, it’s one of the best languages out there right now. Here’s why Go was created:
Go does sound impressive, but unfortunately that’s not the biggest issue with moving Android to Go, or any other language. Doing this will disrupt a lot of things not only for Google but also for the entire Android ecosystem. Android developers will now have to learn Go, if Java is deprecated. Google will need to find a way to make Go a cross-platform language like the Dalvik VM, so it works for other chip architectures. Finally, they will have to do some major rewriting for Android to support Go as well.
In the long run it definitely sounds like something that would be ideal for Google since they’d have full control over what happens with the language. Since it’s such a friendly language they might even get developers to be interested in learning it, just like the vast majority of iOS developers had to learn Objective-C to make iOS apps. But in the short term this transition would definitely be painful for Google and everyone else. So right now they might be considering it, and even doing experiments with it, but I doubt we’ll see anything come out of it in the next few years. Of course, this all remains to be seen pending a win in the lawsuit with Oracle.