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 is java?
you will be creating 2 files, a .html page and a separate JavaScript function file with the .js extension. For submission, you must zip the 2 files into 1 file and upload the zipped file to my website. This assignmen t is meant to get you comfortable with utilizing functions located in a separate function file (as demonstrated in class on Tuesday May 7 th ) Javascript Function file This file will simply contain 2 functions. One called findAvg() which takes in 2 values and returns the average. Another called findMax() which takes in 2 values and returns the maximum. HTML page Create a form for the user to enter 2 integers and a pull down menu wit h the following options listed ... Find Averag e Find Maximum And a button. See my sample output for ass istance on the layout. Once the button is clicked, have your ‘ main ’ javas cript function obtain the i nput including the option chosen in the pull down menu (remember, you mjust set a value for each me nu option so JavaScript can determine which function to use) . If the user selects ‘ Find Averag e ’ , call the findAvg() function from the external file. And so on for the other menu options. Output the result to a <DIV> tag on the webpage. Please note that you must use an external file to hold your functions
Is array a data type in javascript?
How do you assign object properties?
Explain the term closure?
What is ‘this’ keyword in JavaScript?
How to shift and unshift using javascript?
What is the naming conventions for the variables in javascript?
What is triple dot in javascript?
Can you put javascript in html?
How to set the cursor to wait in JavaScript?
How do you reverse a string in javascript?