To be more precise:
Java is a strongly-typed, compiled computer language.
They share a lot of syntax, a dozen or so "reserved words", and 4 letters of their name, but they are not interchangeable. If you ordered a tom cat and got a tomato, you’d probably be upset (especially if the tomato had gone furry, ewww). That said, there may be some developers that can say they are comfortable in both, but I am not one of them.