It is nothing like the real Java. Almost no regular data type is supported and there are severe limitations. [1]
You should view it as using a safe language instead of something like C. If Rust had been invented 20 years ago, it might have been Rust instead.