Java vs. Javascript

Java vs. Javascript.

The differences of Java and Java Script are:

- Java can stand on its own where as Java Script mandatorily be placed within an HTML document.

- Java is larger and used to create stand alone applications. Where as Java Script is text which is fed into a browser which can read it and later executed by the browser.

- Java must be compiled into machine language before it is presented to the end user. While Java Script does not need a compiler or interpreter, it is executed through a web browser.
Explain upcasting and downcasting in Java.
Upcasting: Java permits an object of a sub class can be referred by its super class. It is done automatically.....
Can you explain benefits of classpath?
Classpath is the path in which JVM searches for class libraries at the time of compiling the Java Application. By setting the CLASSPATH environment variable....
Explain the reason of Out of Memory exception in Java
The OutOfMemoryException can occur either the JVM may have a limit of memory to access to, or the system may have run out of physical memory....
Post your comment