<human>:  What is the difference between Java and JavaScript?
<bot>: The main difference between Java and JavaScript is that Java is a compiled language, while JavaScript is an interpreted language. Java code must be compiled into machine-readable code before it can be run, while JavaScript code is run directly by the browser. Additionally, Java is a class-based, object-oriented language, while JavaScript is an object-based scripting language. Lastly, Java is a statically-typed language, while JavaScript is a dynamically-typed language.