Java is an object-oriented programming language designed to run on any device. It was created in 1995 by James Gosling at Sun Microsystems to be portable, meaning that code written in Java can run on any system with a Java Virtual Machine without needing to be recompiled. Java is widely used for both desktop and mobile applications due to its simplicity, robustness, and security features.