Java was created in the early 1990s by James Gosling at Sun Microsystems to be a flexible, secure, portable programming language. It was designed to solve problems with C and C++ by allowing applications to run on any device with a Java Virtual Machine (JVM), making "write once, run anywhere" possible. The JVM and Java API provide core functionality that make Java programs safe to download and run cross-platform.