difference between jsp and java script?




Answers were Sorted based on User's Feedback



Answer / shadow

Both of these are totally different things with nothing
common except the word "java". Javascript is a scripting
language that is interpreted by ur internet
browser.Javascript has nothing to do with the java
language, although it contains java in its name. As far as
its use is concerned, it is used mostly to validate the
user input on web forms. Also it is gr8ly used to change
the appearance of ur web page dynamically.
On the other hand, jsp is a part of java language and it
stands for java server pages. Server pages are the pages
that dynamically change their content according to the user
input(e.g when u login to hotmail or yahoo, it shows u ur
account after loging in). So jsp supports these dynamic
features and interaction with the databases.
Both of these are totally different things with nothing
common except the word "java". Javascript is a scripting
language that is interpreted by ur internet
browser.Javascript has nothing to do with the java
language, although it contains java in its name. As far as
its use is concerned, it is used mostly to validate the
user input on web forms. Also it is gr8ly used to change
the appearance of ur web page dynamically.

On the other hand, jsp is a part of java language and it
stands for java server pages. Server pages are the pages
that dynamically change their content according to the user
input(e.g when u login to hotmail or yahoo, it shows u ur
account after loging in). So jsp supports these dynamic
features and interaction with the databases....

$HADOW

Is This Answer Correct ?    8 Yes 0 No

Answer / vishu

jsp is server side language so it is run on the java
enabled server or any server like apatchi tomacat.
when u run the jsp page then every time page will refreshed
by the server

whre as Java scrip is a language which is used to perform
the validating task of the project it won't be refreshed by
the server rather than browser.

Is This Answer Correct ?    4 Yes 0 No

Answer / ankur pandya

When you run JSP, the web page has to call the server so you
will get a refresh on your page.

when you run Javascript the code runs on your computer via
the browswer so there is no refresh to your page.

Java and Javascript are completely separate languages and
have nothing to do with each other. A JSP, Java Servlet Page
is of the Java language

Is This Answer Correct ?    1 Yes 0 No



Post New Answer





More Core Java Interview Questions

Diff between Comparator and Comparable?

2 Answers   Aditya Birla,


why applet doesn't have main? isn't possible a program with out main?

9 Answers   TCS,


Does Java support multiple Inheritance?

12 Answers  


Is it possible to write static method in abstract class? justyfy your answer?

5 Answers   Hexaware,


program to find 25 square = 625 here the 625 of last two digits is equal to 25, i don't know excatly what this type of number is called

1 Answers   Huawei,






Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Explain with your own example..?

8 Answers   Nokia,


What we have to do, when we don't want to implement all methods of an interface?

5 Answers  


What is hard code & soft code?

7 Answers   Cognizant, Wipro,


Why are the destructors for base class and derived class called in reverse order when the program exits

0 Answers   HCL,


What is Interface?

8 Answers   BMC,


why did you choose your career in IT?

1 Answers   LIC,


Why method overloading and method overriding required in java?

1 Answers   Ericsson, Wipro,






Categories