What is the difference between java and java script?
Answers were Sorted based on User's Feedback
Answer / kannappanksk
Java Script is object based language it is used for front
end validations.
java is object oriented language.object oriented language
supports OOP's,Object based not suppoted inheritence.
Is This Answer Correct ? | 44 Yes | 11 No |
Answer / nazrul
1.Java is an OOP programming language while Java Script is
an OOP scripting language.
2.Java creates applications that run in a virtual machine or
browser 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 follows strong type checking where as Javascript is
very flexible in datatype(loosly typed). Supports types
which represents boolean,int,string
o Ex : Variables in Java is declared as datatype
<varname>; --> int num;
o But in Javascript variable declaration will be as var
<varname>; --> var myName;
5.Javascript support function declarations, but without
accessibility specifiers,parameter datatype,return type
• Javascript : function fcnName(str)
{
........function body..........
}
• Java : public int functionName(int no)
{
..........function body.........
}
Is This Answer Correct ? | 32 Yes | 2 No |
Answer / vijay
Java is a powerful object-oriented language like c, c++
while JavaScript is an object based client side scripting
language.
Is This Answer Correct ? | 33 Yes | 10 No |
Answer / rajesh gupta
java is an entire programming language of sun microsystem
while javascript is scripting language that is introduce by
netscape.
Is This Answer Correct ? | 19 Yes | 2 No |
Answer / gagandeep kaur
java used to create standalone application and special
type of mini application called an applet
javascript doesn't create standalone and doesn't create an
applet.
Is This Answer Correct ? | 16 Yes | 0 No |
Answer / amita
java script is a scripting language, it is used for
validations, you can use some of java methods in javascript
code.
java is a structured language like c, c++.
I think you can not fetch database from Javascript but in
java code you can do so.
Is This Answer Correct ? | 19 Yes | 7 No |
Answer / uttam kumar
Java is object oriented oriented programming language which supports the Inheritance but Javascript is a Object based language which does not support the Inheritance.
Is This Answer Correct ? | 14 Yes | 2 No |
Answer / preet
java uses the concept of classes and objects.
there is no such things used in java script.
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / preet
Java exhibits the properties like inheritance, data encapsulation and polymorphism whereas JavaScript does not exhibits these properties.
Is This Answer Correct ? | 6 Yes | 0 No |
What are the advantages of javascript?
What and where are the best javascript resources on the web?
what is flux in javascript?
What are screen objects?
How do I save javascript?
Are Javascript and JScript the same?
Between JavaScript and an ASP script, which is faster?
what is the purpose of using jsp?
what is onfocus and onblur events in java script?
What is the microsoft version of javascript?
Why it is not advised to use innerhtml in javascript?
accessdenied javanet disconnet