java is virtualised and compiled while javascript isn't. javascript and java aren't that similar apart from beign both OOP.
The scripts.
print("hello")