GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE

 Print  |  
Question:  what is diffrence between java and java script?



November 11, 2005 06:50:53 #2
 raj   Member Since: Visitor    Total Comments: N/A 

RE: what is diffrence between java and java script?
 

Java and javascript both based on objects and their is a tight relation ship between these two.

The major difference between these two are:

1.Java is compiled language but javascript is an interpreted language.

2.Java is strongly typed language i.e,it is necessary to declare variables before use but it is not the case with javascript.

3.Java is used independently while javascript is used with in html tags and require web browser to run.

4.java files have the file extension of '.java' while javascript files have extension of '.js'

5.Java can be used for designing standalone applications as well as web pages also while javascript can only be used for designing wed pages.

     

 

Back To Question