Java used to be one of the best, if not the best platform for mobile games.
Java ME (formerly known as J2ME) is a software platform with which applications can be developed and deployed in a cross-platform environment, including mobile phones. Then there were platforms such as Adobe flash lite, BREW (Binary Runtime Environment for Wireless), and Java (Java ME), which were widely used for mobile game development. Believe it or not, Symbian and BlackBerry OS were more popular before 2009. But this was not the case more than a decade ago or so. Today, mobile gaming mostly revolves around Android and iOS, as there are no other feasible alternatives.