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
How fast can you learn coding?
How can I set up my own javascript error handler?
How much do javascript programmers make?
What do you use javascript for?
Iam getting xml when we click on one button.Iam placing that
xml in dom.Im getting that xml data in one xsl.In that xsl
I want to increase the variable value which is declared in
xsl.
Ex:
What is the difference between ‘function declaration’ and ‘function expression’?
What are the four types of javascript objects?
Do you have to declare variables in javascript?
What are ‘settimeout()’?
How to achieve inheritance in javascript?
What is event in javascript?
What is a Typed Language?
What is the difference between .call() and .apply()?
What is asynchronous javascript?
What is the javascript function?