php & Javascript are very popular scripting languages.There may be more .
Java,C++ etc are programming laguages.
can you please tell me what is the deference of these two Scripting languages & programing languages.??
Scripting language & programming lang.
Scripting language & programming lang.
Last edited by Face on Sat Jun 04, 2011 9:28 pm, edited 1 time in total.
Re: Scripting language & programming lang.
There is a big difference. php executes on server side (Web Server) while JavaScript executes on client side (ex: browser).php & Javascript are very popular scripting languages.There may be more .
So JavaScript is not used for stuff like database access and php is not used for browser based operations such as detecting button presses, hover, etc...
Yes. Java and C++ are programming languages. But there are lots of differences.Java,C++ etc are programming laguages.can you please tell me what is the deference of these two.??
Java is not only an application programming language such as C++ (generally). Java is used on server side scripting (JSP, Servlets), on mobile platforms such as J2ME, Android, etc...
Java is a platform independent programming language. That means once you compile it, you will be able to run it in many platforms with a JVM. C++ executables needs to be recompiled using cross-compilers to run on different platforms.
Java is completely an object oriented programming language. C++ can be either used as Object oriented or procedural language.
C++ has pointers (direct memory access) where as Java doesn't support memory pointers.
C++ has lots of control on the OS and underlying hardware where as Java doesn't provide such deep access to the users. This is the reason for using C/C++ for system programming and embedded development. Even Java is developed using C/C++.
C++ very fast since it compiled to direct machine instructions on the underlying hardware. Java is too slow to run in most of the cases due to interpreting byetecode on JVM.
Have a look at this wiki article for a complete comparison.
Comparison of Java and C++
Microsoft has made C# as a competitor for Java and you might be interested to compare C# with Java as well.
See Comparison of C Sharp and Java
Re: Scripting language & programming lang.
Sorry saman....Sorry about my mistake.I wanted to ask the deference between scripting languages & programing languages ?
my thread not contain a clear Idea about the question.
Again I am so sorry about the mistake I have made.!I will change the post now.
my thread not contain a clear Idea about the question.
Again I am so sorry about the mistake I have made.!I will change the post now.
Re: Scripting language & programming lang.
There are lots of discussions going on on this heading since it is so tricky to answer. However I'll add some of the changes I know.
Scripting languages
Usually interpreted (executed line by line) by an interpreter. For example, php executed on a web server such as Apache.
Since the executable code is the script we write itself, it is easily readable.
Limited access to underlying hardware. (Ex: There are limits on accessing the server information from PHP. There are lots of limits on accessing client system using JavaScript using the web browser).
Usually platform independent code.
Programming languages
Usually compiled or hybrid (both compiled and interpreted such as Java).
Since the executable code is a compiled code, it is not readable. We will need the source code to do a change.
Lots of independence on accessing underlying hardware.
Mostly platform dependant except few languages such as Java.
Scripting languages
Usually interpreted (executed line by line) by an interpreter. For example, php executed on a web server such as Apache.
Since the executable code is the script we write itself, it is easily readable.
Limited access to underlying hardware. (Ex: There are limits on accessing the server information from PHP. There are lots of limits on accessing client system using JavaScript using the web browser).
Usually platform independent code.
Programming languages
Usually compiled or hybrid (both compiled and interpreted such as Java).
Since the executable code is a compiled code, it is not readable. We will need the source code to do a change.
Lots of independence on accessing underlying hardware.
Mostly platform dependant except few languages such as Java.