What is difference between the java and javascript?

Ads
 

What is difference between the java and javascript?

What is the difference beteen the java and javascript?

View Answers

October 28, 2010 at 10:44 AM

Hello Friend,

Difference:

1) Java is a Object Oriented programming language developed by Sun Microsystems, while JavaScript is a scripting language that was introduced by Netscape.

2) Java creates applications that run in a virtual machine while JavaScript code is run on a browser only.

3) Java code needs to be compiled while JavaScript code are all in text.

4) Java can only be used as a back-end language within a web environment while Javascript is used for front-end web development.

5) Java follows strong type checking where as Javascript is very flexible in datatype(loosly typed). Ex : Variables in Java: int num;String st; Variables in Javascript: var name;

6) Java support function declarations, with accessibility specifiers,parameter datatype,return type while Javascript does not.

Ex: function declaration in java:
    public int functionName(int no){
    }

    function declaration in javascript:
    function fcnName(str){
     }

Thanks

Ads









Related Tutorials/Questions & Answers:
What is difference between the java and javascript?
What is difference between the java and javascript?
Advertisements
what is difference between objectan primitive? - Java Beginners
What is difference between Core Java and Advanced Java?
What is the difference between the >> and >>> operators?
In Java, what's the difference between public, default, protected, and private?
what is the difference between access specifiers and access modifiers in java?
What is the difference between a constructor and a method?
what is the difference between extends and implements
what is the difference between extends and implements
what is the Difference between weblogic and jboss?
What is the difference between PHP4 and PHP5?
What is difference between a PROCEDURE & FUNCTION ?
What is the difference between $message and $$message?
what is the difference between pop and oop
What is the difference between hibernate and spring
What is the difference between a JDK and a JVM?
What is the difference between JPA and Hibernate?
What is difference between Path and Classpath?
What is difference between TRUNCATE & DELETE
what is the difference in java and j2ee
What is the difference between ereg_replace() and eregi_replace()?
What is the difference between the functions unlink and unset?
What are the difference between abstract class and interface?
What’s the difference between include and require?
what is the difference between distributed application and web application?
What’s the difference between load() and get()?
What is the difference between JSF, Servlet and JSP?
What is difference between singleton and prototype bean?
what is the difference between productList==null and productList.size()==0
What is the difference between the Boolean & operator and the && operator?

Ads