Well, this is JavaScript not Java, both are very much different!