Yes, the Java compiler is definitely not working properly, first, it doesn't support all methods; second, I also submitted a few Java programs but they all don't work, despite the fact that they are working perfectly with the same output as the sample given!