What is the difference between java and java script?
Answer Posted / 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 |
Post New Answer View All Answers
Difference between window, document, and screen in Javascript?
What creates scope in javascript?
How can the os of the client machine be detected?
How can you get the reference of a caller function inside a function?
What is decodeuri() function?
Is JavaScript a case-sensitive language?
What is a closure and why are they so useful to us?
What does === mean in js?
What does the "Access is Denied" IE error mean?
What is unescape() function?
How dhtml is used in javascript?
What is scope of variable in javascript?
How can you read properties of an Object in JavaScript?
Write the code for adding new elements dynamically?
Name the different types of pop up boxes in Javascript?