Java is to Javascript what ham is to hamsters.
They share the first four letters of their names; you can use Java from within Javascript if you’re desperate to do so; apart from that, they have very little to do with each other. #javascript exists; use it instead of assaulting us with offtopic stuff.