That was always the core issue with Java for me. No matter how hard they tried to sell me that they finally fixed UI with Swing and whatnot, it always felt like Java apps lived in their own bubble, consumed massive resources and we're slow in general.
The best approach so far is Android and even then, I would say that the big difference between iOS and Android is precisely when the garbage collector kicks in and you get to see a phone with hiccups.
But of course, the Java language itself is loved by the academia as it conforms nicely to everything that is taught in proper architecture (even if it is verbose like no one)