The moose likes Beginning Java and the fly likes Java vs. Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java vs. Javascript" Watch "Java vs. Javascript" New topic

Java vs. Javascript

J. Moritz

Joined: Oct 20, 2004
Posts: 5
If one knows Java does one inherently Java Script?
J. Moritz

Joined: Oct 20, 2004
Posts: 5
Let me rephrase that....

I am learning Java it necessary to learn Java Script or will I inherently know JS by learning Java? ...Is JS a subset of Java?
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Hi Moritz,
JavaScript is not a subset of Java.
It is different with Java although some its keywords are same with Java's keywords.
You usually use JavaScript for developing web application.
JavaScript is used to validate the user's entry before its value send to the server.

Imagine that you have a screen about Registration. You have to fill birth date on that. Before your birth date is sent to server, you have JavaScript's function to validate whether your input is in correct format of date or not. If you enter invalid date format, its function will alert you and not send your input to server.

Hope this help.. and correct me if I am wrong...

I agree. Here's the link:
subject: Java vs. Javascript
It's not a secret anymore!